PUT
/
v3
/
carts
/
{cartId}
/
line-items
/
{lineItemId}
/
adjustments
/
{adjustmentId}

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

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
string

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.

x-fabric-request-id
string

Unique request ID

Path Parameters

cartId
string
required

Cart ID

lineItemId
string
required

Line item ID

adjustmentId
string
required

Price adjustment identifier

Body

application/json

Price adjustment details

amount
number
required

Amount to be adjusted with the specified line item's total amount or with a specified cart's total amount

reason
string
required

Price adjustment reason

attributes
object | null

Placeholder for additional information

Response

200 - application/json

Price adjustment details for the specified line item or the specified cart

id
string
required

Price adjustment ID; it identifies a single price adjustment object within the price adjustments array.

amount
number
required

Amount by which the line item's total amount or the specified cart's total amount is adjusted

reason
string
required

Price adjustment reason

attributes
object | null

Placeholder for additional information

createdAt
string

Time cart was created

updatedAt
string

Time cart was last updated