getShopperType

get

/ccadmin/v1/shopperTypes/{id}

Get Shopper Type. Get information about shopper types by ID. Optionally takes the x-ccasset-language header to get translated content in another language.

Request

Supported Media Types
Path Parameters
Header Parameters
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : getShopperType_response
Type: object
Show Source
Nested Schema : properties
Type: array
List of user-defined properties for shopper type keyed by property name.
Show Source
Nested Schema : propertiesOrder
Type: array
List of properties in ascending order
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : editableAttributes
Type: array
List of editable attributes
Show Source
Nested Schema : items
Type: object
Show Source
  • Default editable attribute.
  • Dimensions of item type.
  • Whether properties are internal.
  • Label for the item type.
  • whether multi-select search facet or not.
  • Can be set to a single access right id, in which case a user must have that access right in order to read the property. (If readRole is also set, then a user can have the role OR the access right in order to access.)
  • Can be set to a single role id, in which case a user must have that role in order to read the property.
  • Can be set to "deny" or "ignore", with "ignore" being the default behavior. Ignore means that reads will return a masking value rather than the real value: null, default value, or a value set via the securityMaskingValue attribute. Deny means that the property will disappear entirely from responses and direct attempts to read it will result in an error. Deny security is only available on custom properties.
  • Whether it is required or not.
  • Whether item searchable or not.
  • A value to return if the read fails the security check and the readSecurityLevel is ignore.
  • If set to true, Storefront users will be able to bypass any role or access right security when reading the property on their own profile.
  • If set to true, Storefront users will be able to bypass any role or access right security when writing the property on their own profile.
  • Whether property is searchable or not.
  • Can be set to a single access right id, in which case a user must have that access right in order to write the property. (If writeRole is also set, then a user can have the role OR the access right in order to write the property.)
  • Can be set to a single role id, in which case a user must have that role in order to write the property.
  • Can be set to "deny" or "ignore", with "ignore" being the default behavior. Ignore means that writes will fail silently. Deny means that attempts to write the property will result in an error.
Example Response (application/json)
{
    "propertiesOrder":[
        "login",
        "password",
        "email",
        "autoLogin",
        "generatedPassword",
        "lastEmailed",
        "emailStatus",
        "receiveEmail",
        "lastPasswordGenerate",
        "lastActivity",
        "lastPasswordUpdate",
        "registrationDate",
        "derivedApprovalRequired",
        "firstName",
        "middleName",
        "derivedOrderPriceLimit",
        "lastName",
        "gender",
        "daytimeTelephoneNumber",
        "member",
        "userType",
        "locale",
        "securityStatus",
        "description",
        "realmId",
        "defaultCarrier",
        "abandonedOrderCount",
        "allowPartialShipment",
        "currentLocation",
        "accessTokenSigningKey",
        "expressCheckout"
    ],
    "displayName":"User",
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:9080/ccadminui/v1/shopperTypes/user?properties=%5Bobject%20Object%5D"
        }
    ],
    "id":"user",
    "properties":{
        "lastName":{
            "custom":false,
            "length":254,
            "label":"Last name",
            "type":"shortText",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":null,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "accessTokenSigningKey":{
            "custom":false,
            "length":254,
            "label":"accessTokenSigningKey",
            "type":"shortText",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":null,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "gender":{
            "custom":false,
            "length":32,
            "label":"Gender",
            "type":"shortText",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":"female",
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "generatedPassword":{
            "custom":false,
            "length":1,
            "label":"Generated password",
            "type":"checkbox",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":false,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "allowPartialShipment":{
            "custom":false,
            "length":1,
            "label":"Allow partial shipment",
            "type":"checkbox",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":false,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "defaultCarrier":{
            "custom":false,
            "length":254,
            "label":"Default carrier",
            "type":"shortText",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":null,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "description":{
            "custom":false,
            "length":254,
            "label":"Description",
            "type":"shortText",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":null,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "locale":{
            "custom":false,
            "length":32,
            "label":"Locale",
            "type":"shortText",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":null,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "login":{
            "custom":false,
            "length":254,
            "label":"Login name",
            "type":"shortText",
            "required":true,
            "searchable":false,
            "internalOnly":null,
            "default":null,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "searchable"
            ],
            "multiSelect":null
        },
        "securityStatus":{
            "custom":false,
            "length":10,
            "label":"Security status",
            "type":"number",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":0,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "autoLogin":{
            "custom":false,
            "length":1,
            "label":"Auto login",
            "type":"checkbox",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":false,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "password":{
            "custom":false,
            "length":254,
            "label":"Password",
            "type":"shortText",
            "required":true,
            "searchable":false,
            "internalOnly":null,
            "default":null,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "searchable"
            ],
            "multiSelect":null
        },
        "registrationDate":{
            "custom":false,
            "length":26,
            "label":"Registration date",
            "type":"date",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":"2015-08-04T03:42:42.876Z",
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "member":{
            "custom":false,
            "length":1,
            "label":"Member",
            "type":"checkbox",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":false,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "lastPasswordGenerate":{
            "custom":false,
            "length":26,
            "label":"lastPasswordGenerate",
            "type":"date",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":null,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "email":{
            "custom":false,
            "length":254,
            "label":"Email address",
            "type":"shortText",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":null,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "daytimeTelephoneNumber":{
            "custom":false,
            "length":254,
            "label":"Daytime telephone number",
            "type":"shortText",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":null,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "realmId":{
            "custom":false,
            "length":254,
            "label":"Profile Realm",
            "type":"shortText",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":null,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "derivedOrderPriceLimit":{
            "custom":false,
            "length":22,
            "label":"Order limit",
            "type":"number",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":null,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "receiveEmail":{
            "custom":false,
            "length":32,
            "label":"Receive email",
            "type":"shortText",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":"yes",
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "lastEmailed":{
            "custom":false,
            "length":26,
            "label":"lastEmailed",
            "type":"date",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":null,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "currentLocation":{
            "custom":false,
            "length":0,
            "label":"Current location",
            "type":"shortText",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":"unknown",
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "abandonedOrderCount":{
            "custom":false,
            "length":10,
            "label":"Number of abandoned orders",
            "type":"number",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":null,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "firstName":{
            "custom":false,
            "length":254,
            "label":"First name",
            "type":"shortText",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":null,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "emailStatus":{
            "custom":false,
            "length":32,
            "label":"Email status",
            "type":"shortText",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":"unknown",
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "derivedApprovalRequired":{
            "custom":false,
            "length":1,
            "label":"Approval required",
            "type":"checkbox",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":false,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "expressCheckout":{
            "custom":false,
            "length":1,
            "label":"Express checkout",
            "type":"checkbox",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":false,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "lastPasswordUpdate":{
            "custom":false,
            "length":26,
            "label":"Last password update",
            "type":"date",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":"2015-08-04T03:42:42.962Z",
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "lastActivity":{
            "custom":false,
            "length":26,
            "label":"Last activity",
            "type":"date",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":null,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "middleName":{
            "custom":false,
            "length":254,
            "label":"Middle name",
            "type":"shortText",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":null,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        },
        "userType":{
            "custom":false,
            "length":10,
            "label":"User type",
            "type":"number",
            "required":false,
            "searchable":false,
            "internalOnly":null,
            "default":null,
            "textSearchable":false,
            "localizable":false,
            "dimension":false,
            "editableAttributes":[
                "textSearchable",
                "multiSelect",
                "dimension",
                "internalOnly",
                "default",
                "label",
                "required",
                "searchable"
            ],
            "multiSelect":null
        }
    }
}

Default Response

The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |75001|Not supported type|
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top