To create a new shopper profile, issue a POST request to the /ccadmin/v1/profiles endpoint on the administration server. Specify the values of the profile properties as a JSON map in the body of the request. For example:

POST /ccadmin/v1/profiles HTTP/1.1
Content-Type: application/json
Authorization: Bearer <access_token>

{
    "receiveEmail": "yes",
    "lastName": "Wilson",
    "locale": "en_US",
    "email": "fredW@example.com",
    "firstName": "Fred"
}

If the profile is created successfully, the response body returned includes the ID for the new profile and a link to the URL used in the request:

{
    "id": "120000",
    "links": [
        {
            "rel": "self",
            "href": "http://myserver.example.com:9443/ccadmin/v1/profiles"
        }
    ]
}

Copyright © 1997, 2016 Oracle and/or its affiliates. All rights reserved. Legal Notices