Skip to main content
PATCH
/
api-cart
/
cart
/
{cartId}
/
ship-to
Add shipTo IDs to cart items
curl --request PATCH \
  --url https://prod01-apigw.{customer_name}.fabric.zone/api-cart/cart/{cartId}/ship-to \
  --header 'Content-Type: application/json' \
  --header 'x-site-context: <x-site-context>' \
  --data '
[
  {
    "itemId": 123456,
    "lineItemId": 3,
    "shipTo": "5e5818a84d030c206b2ffb02"
  }
]
'
"<unknown>"

Headers

x-site-context
string
required

The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.

Example:

"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"

Path Parameters

cartId
string
required
Required string length: 24
Example:

"5e5818a84d030c206b2ffb02"

Body

application/json
Minimum array length: 1
itemId
string
required
Example:

123456

lineItemId
number
required
Example:

3

shipTo
string
Required string length: 24
Example:

"5e5818a84d030c206b2ffb02"

Response

shipTo added to cart

The response is of type any.