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.
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"
A sample request to split items in the cart by quantity.
Sample request to split line items
Line item id
"d7e78a21-bee3-4448-bf1c-d5b5461dbda2"
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.
Quantity for each split line item
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