createShopperInput

post

/ccadmin/v1/shopperInputs

Create a new Shopper Input. Creates a new Shopper Input based on request parameters. **Requires the x-ccasset-language header so translated content can be set for a specific language.**

Request

Supported Media Types
Header Parameters
Body ()
Root Schema : ShopperInput_request
Type: object
Show Source
Example:
{
    "name":"Gift Message",
    "id":"giftMessage",
    "label":"Gift Message",
    "type":"shortText",
    "promptText":"Enter the gift message",
    "required":false
}
Nested Schema : localizedValues
Type: object
Additional Properties Allowed
Show Source
Localized enumerated values map (base -> localized), returned when type=enumerated and there is localization.
Nested Schema : values
Type: array
Values when the type=enumerated. Can also be set as a map of base -> localized values, for localization. For other data types array will be empty.
Show Source
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : ShopperInput_response
Type: object
Show Source
Nested Schema : values
Type: array
Values when the type=enumerated. Can also be set as a map of base -> localized values, for localization. For other data types array will be empty.
Show Source
Example Response (application/json)
{
    "uiEditorType":null,
    "values":[
    ],
    "name":"Gift Message",
    "id":"giftMessage",
    "label":"Gift Message",
    "type":"shortText",
    "promptText":"Enter the gift message",
    "required":false
}

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| |------------------|------------------| |26400|Invalid data error. The exact error message will vary based on the property.| |26409|Id of a Shopper Input must be unique.|
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