To view a shopper type, issue a GET request to the /ccadmin/v1/shopperTypes/{id} endpoint on the administration server. The following example illustrates calling this endpoint with user (the only type currently available) specified as the value for id:

GET /ccadmin/v1/shopperTypes/user HTTP/1.1
Authorization: Bearer <access_token>

The following example shows a portion of the response returned:

{
    "id": "user",
    "links": [
        {
           "rel": "self",
           "href": "http://myserver.example.com:7002/ccadmin/v1/shopperTypes/user"
        }
    ],
    "properties": {
         ...
        "lastName": {
            "writable": true,
            "localizable": false,
            "label": "Last name",
            "type": "shortText",
            "uiEditorType": "shortText",
            "textSearchable": false,
            "multiSelect": null,
            "dimension": false,
            "internalOnly": null,
            "default": null,
            "audienceVisibility": null,
            "editableAttributes": [
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "audienceVisibility",
                "searchable"
            ],
            "length": 254,
            "required": false,
            "searchable": false
        },
     },
     ...
}

This example shows a portion of the response corresponding to one of the predefined profile properties appearing in the previous example. The property has a group of attributes that control the behavior associated with the property. To modify the user shopper type, you can create custom properties or modify existing properties by setting the values of these attributes.


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