createPurchaseList

post

/ccagent/v1/purchaseLists

Create Purchase List. This operation is used to create a purchase list for a given site, account, user context.Each purchase list should have a unique name for a given user. Dynamic Properties of purchase list and purchase list line item can be added in the the request using the key value pair structure ("dynamicPropertyKey":"dynamicPropertyValue"). These property values can take the types of boolean, date, float, string, timestamp, enumerated, big string.

Request

Supported Media Types
Body ()
Root Schema : createPurchaseList_request
Type: object
Show Source
Example:
{
    "dynamicProperty":"dynamicProperty value",
    "accountId":"or-100001",
    "name":"Purchase List 1",
    "description":"Purchase List",
    "siteId":"siteUS",
    "items":[
        {
            "dynamicProperty":"dynamicProperty value",
            "productId":"Product_18Cxi",
            "quantityDesired":25,
            "catRefId":"Sku_18Dxi"
        },
        {
            "dynamicProperty":"dynamicProperty value",
            "productId":"Product_5Cx",
            "quantityDesired":30,
            "catRefId":"Sku_5Cxy"
        }
    ]
}
Nested Schema : dynamicProperty
Type: object
The value of the dynamic Property
Nested Schema : items
Type: array
list of purchase list items
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : dynamicProperty
Type: object
The value of the dynamic Property
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : createPurchaseList_response
Type: object
Show Source
Nested Schema : dynamicProperty
Type: object
The value of the dynamic Property
Nested Schema : items
Type: array
list of purchase list items
Show Source
Nested Schema : lastModifiedBy
Type: object
The user who last modified this purchase list.
Show Source
Nested Schema : owner
Type: object
The user who created this purchase list.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : dynamicProperty
Type: object
The value of the dynamic Property

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| |------------------|------------------| |64101|Error while creating a purchase List| |64100|Invalid profile or user logged out
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