POST
/
orchestrator
/
carts
/
{cartId}
/
order-drafts

Authorizations

Authorization
string
header
required

Include the Bearer<token> header where the <token> is the authentication token generated from the Getting Started with fabric APIs process.

Headers

x-fabric-tenant-id
string
required

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-request-id
string

Unique request ID for tracking.

x-fabric-channel-id
string
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.

Path Parameters

cartId
string
required

The 24-character system-generated Cart ID. This ID is generated using the Create cart endpoint.

Body

application/json
orderNumber
string

Order number based on the order sequence.

orderSequence
object

An order sequence is used to define a pattern or template for generating unique order numbers. This object contains the order sequence name and identifier.

Response

200 - application/json
addresses
object

A map of addresses added to the cart.

adjustments
object

A collection of adjustments made to the cart.

appliedCoupons
object[]

An array containing all coupons applied to the cart.

attributes
object

Custom attributes used to describe the cart, such as a wishlist cart.

cartId
string

The unique identifier of the cart that was passed in the parameter.

coupons
object[]

An array containing all coupons added to the cart.

createdAt
string

The date and time when a cart was created.

customerContext
object

Customer context object containing customer information.

errors
object[]
fees
object

A collection of fees associated with the cart.

fulfillments
object

A map of fulfillments added to the cart.

lineItems
object

A collection of items in the cart.

notAppliedCoupons
object[]

An array containing any coupons that were ineligible and not applied to the cart.

order
object

Order information

payments
object

An object containing a collection of payments added to the cart.

price
object

The sum of the total amount of the cart.

promotions
object

A collection of promotions applied to the cart.

state
object[]

The resource state is stored in an array that holds information about the current status of the cart.

status
enum<string>

The cart status indicates whether the cart is active or deleted.

Available options:
ACTIVE,
SOFT_DELETE
updatedAt
string

The date and time in UTC when the cart was last updated.