Headers
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.
"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"
API Key for Gateway
"zaCELgL.0imfnc8mVLWwsAawjYr4Rx-Af50DDqtlx"
Authorization token for the user
"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYxZjIyMTU4..."
Path Parameters
Cart ID to update a specific price adjustment data for a given lineItemId
within the cart.
"d7e78a21-bee3-4448-bf1c-d5b5461dbda2"
Cart item's sequence number (starts at 1) for which price adjustment information is to be updated within the cart.
1
Price adjustment ID; it identifies a single price adjustment object from the list of price adjustments for the specified lineItemId
.
"d7e78a21-bee3-4448-bf1c-d5b5461dbda2"
Body
Sample request containing price adjustment details to be updated.
Price adjustment details
Amount to be adjusted with the specified line item's total amount or with a specified cart's total amount
60.5
Price adjustment reason
"compensation for delay"
Placeholder for additional information
{ "goldMember": [false] }
Response
OK
Cart details
Items in cart
Currency type
"USD"
Metadata for this cart
{ "approver": "620d8896058edb0009385311" }
All promotions or coupons for items in this cart
UserIds of the users who share the cart
Errors in this cart
Cart ID
"d7e78a21-bee3-4448-bf1c-d5b5461dbda2"
Cart creation time
"2022-02-11T14:09:40.836703"
Last time cart was updated
"2022-02-22T22:36:40.194293"
Number of items in the cart
3
Number of unique items in the cart based on line item ID
2
Cart status
ACTIVE
, PENDING
, PENDING_APPROVAL
, APPROVED
, SUBMITTED
, DELETED
, REJECTED
"PENDING"
Merchant ID
"5f689caa4216e7000750d1ef"
Customer account ID
"5f689caa4216e7000750d1ef"
User ID
"61b8e921d0cf2e000882b09f"
Cart configurations
Customer context Customer context of a cart
Total price of cart items after discount including Shipping and Shipping Discount
95
Total price of cart items including Shipping without any discount
120
Total discount applied to cart
25
Total fees applied to cart
25
Additional item options
Fees associated with a specific cart or an individual line item of a cart
List of recommended products that are available for purchase along with the item added to the cart