Split the cart item by quantity
With this endpoint, you can split a specific line item into multiple line items by quantity. This helps to add different attributes, such as different shipping locations, to each split line item. Each split line item is assigned a unique line item ID.
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
Path Parameters
Cart ID
Body
Sample request to split line items
Line item id
Line item quantities for each split line item, meaning quantities assigned to each individual line item after the original line item (by lineItemId) is split into multiple line items.
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?