Split line items
Splits the item associated with the corresponding cart into multiple line items based on quantity.
The Cart ID from the Create cart endpoint is used in the path parameter.
The Item ID from the Create item endpoint is used in the path parameter.
Authorizations
This is the authorization token used to authenticate the request. You must pass the access token generated from the system app. For more information, see the Making your first API request section.
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.
Unique request ID for tracking.
x-fabric-channel-id identifies the sales channel through which the API request is being made; primarily for multichannel use cases. It is a required field. The default US channel is 12 while the default Canada channel is 11.
Path Parameters
The 24-character system-generated Cart ID. This ID is generated using the Create cart endpoint.
The Item ID generated when the item was created using the Create item endpoint. You can find the ID in the line item collections.
Body
Split line items request
Quantities to split the item by.
When line items are split, the behavior of adjustments is based on specified criteria. COPY duplicates the adjustment settings, while NONE does not transfer any adjustment settings.
COPY
, NONE
When line items are split, the behavior of fees is based on specified criteria. COPY duplicates the line items settings, while NONE does not transfer any line items settings.
COPY
, NONE
When line items are split, the behavior of fulfillments is based on specified criteria. COPY duplicates the fulfillments settings, while NONE does not transfer any fulfillments settings.
COPY
, NONE
Response
Cart Response
The unique identifier of the cart, which is generated when the cart is created using the Create an empty cart endpoint.
Custom attributes used to describe the cart, such as a wishlist cart.
Cart configurations determine the behavior within the cart.
Customer context object containing customer information.
The cart status indicates whether the cart is active or deleted.
ACTIVE
, SOFT_DELETE
The resource state is stored in an array that holds information about the current status of the cart.
The sum of the total amount of the cart.
A collection of promotions applied to the corresponding cart.
A collection of fees associated with the corresponding cart.
A collection of adjustments made to the corresponding cart.
A map of addresses added to the corresponding cart.
A collection of items in the cart.
A summary of items in the cart.
A map of fulfillments added to the corresponding cart.
An array containing all coupons added to the corresponding cart.
An array containing all coupons applied to the cart.
An array containing any coupons that were ineligible and not applied to the cart.
An object containing a collection of payments added to the corresponding cart.
Channel ID
The currency that the cart will use when an order is created.
The date and time in UTC when the cart was last updated.
The date and time when the cart was created.
Was this page helpful?