Use this endpoint to add an order number that was created externally to the cart journey. This helps add order number generated through external service and inject into cart. This would be used as the orderNumber during checkout to create a order.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
A header used by fabric to identify the tenant making the request. You must include tenant id in the authentication header for an API request to access any of fabric’s endpoints. You can retrieve the tenant id , which is also called account id, from Copilot. This header is required.
x-fabric-channel-id identifies the sales channel where the API request is being made; primarily for multichannel use cases. The channel ids are 12 corresponding to US and 13 corresponding to Canada. The default channel id is 12. This field is required.
Unique request ID
Cart ID
"b8a64b52-dab4-8137-8d6a-f2c2337abc1"
Sample request to add order number to the cart
Request to add order number to a cart.
The order number
"121213"
OK
Unique cart identifier
"c695af14-5e33-402c-9d8d-71edcf4856a8"
Time cart was created
"2022-09-06T14:07:17.000Z"
Time cart was last updated
"2022-09-06T14:07:17.000Z"
Cart name
"cart_it"
Cart description
"IT department cart"
Number of line items in the cart
3
Number of different (unique) line items in the cart based on line item ID
2
Cart status
PENDING - Cart is in pending state
DELETED - Cart is in deleted state
PENDING, DELETED "PENDING"
Customer account ID
"5f689caa4216e7000750d1ef"
Cart configurations
Customer context
Total price of line items after discount, including shipping and shipping discount
10
Total discount applied to cart
10
Total fees applied to cart
10
Total price of line items, including shipping, without discount
10
Currency type
"USD"
Cart attributes
{ "approver": "620d8896058edb0009385311" }Applied discounts
Suggested free products
The order number
"121213"
Errors in this cart