POST
/
carts
/
{cartId}
/
line-items

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-fabric-tenant-id
string
required

Merchant's 24-character tenant ID

x-fabric-channel-id
string

Sales channel ID

x-fabric-request-id
string

Unique request ID

Path Parameters

cartId
string
required

Cart ID

Body

application/json

Line items to add to cart

sku
string | null

Item SKU

itemId
any
required
quantity
integer
required

Number of line items in cart

priceListId
integer | null

Item price list ID

attributes
object | null

Additional data passed by the caller

fulfillment
object | null

Fulfillment request details

fees
object[] | null

Response

201 - application/json

Line item details

id
string | null

Line item ID

itemId
any
position
integer

Line item position number (starts at 1)

name
string | null

Line item name

sku
string

Line item SKU

productAttributes
object[] | null

Additional line item options

createdAt
string

Time line item was created

updatedAt
string

Time line item was last updated

quantity
integer

Line item quantity

priceListId
integer | null

Line item price list ID

isActive
boolean | null

true: Item is active<br />false: Item is inactive

price
any | null

Individual line item price

discounts
any[]

Individual line item discount

groups
string[] | null
attributes
object | null

Attributes passed by caller

channel
string

Sales channel

isPickup
boolean

true: Item is set for pickup<br />false: Item is set for delivery

warehouseId
string | null

Warehouse ID

shippingDetails
object

Shipping details

fulfillment
object | null

The fulfillment details.

fees
object[] | null
adjustments
object[] | null