Create a cart
Create a cart with items.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
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
Body
Line items (with details) to add to cart
Cart name
Cart description
Line items to add to cart
Cart configurations
Customer context
Response
Unique cart identifier
Time cart was created
Time cart was last updated
Cart name
Cart description
Number of line items in the cart
Number of different (unique) line items in the cart based on line item ID
Cart status <br/> PENDING
- Cart is in pending state <br/> DELETED
- Cart is in deleted state
PENDING
, DELETED
Customer account ID
Cart configurations
Customer context
Total price of line items after discount, including shipping and shipping discount
Total discount applied to cart
Total fees applied to cart
Total price of line items, including shipping, without discount
Currency type
Cart attributes
Applied discounts
Suggested free products
The order number
Errors in this cart
Was this page helpful?