PUT
/
v3
/
carts
/
{cartId}
/
adjustments
/
{adjustmentId}
curl --request PUT \
  --url https://api.fabric.inc/v3/v3/carts/{cartId}/adjustments/{adjustmentId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-fabric-tenant-id: <x-fabric-tenant-id>' \
  --data '{
  "amount": 60.5,
  "reason": "CSR Adjustment",
  "attributes": {
    "productFamily": "Laptop computers"
  }
}'
{
  "id": "c695af14-5e33-402c-9d8d-71edcf4856a8",
  "amount": 60.5,
  "reason": "CSR Adjustment",
  "attributes": {
    "productFamily": "Laptop computers"
  },
  "createdAt": "2022-09-06T14:07:17.000Z",
  "updatedAt": "2022-09-06T14:07:17.000Z"
}

Authorizations

Authorization
string
header
required

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

Example:

"b8a64b52-dab4-8137-8d6a-f2c2337abc1"

adjustmentId
string
required

Price adjustment identifier

Example:

"d7e78a21-bee3-4448-bf1c-d5b5461dbda2"

Body

application/json
A sample request with details of the price adjustment.

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

Example:

60.5

reason
string
required

Price adjustment reason

Example:

"CSR Adjustment"

attributes
object | null

Placeholder for additional information

Example:
{ "productFamily": "Laptop computers" }

Response

200
application/json
OK

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.

Example:

"c695af14-5e33-402c-9d8d-71edcf4856a8"

amount
number
required

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

Example:

60.5

reason
string
required

Price adjustment reason

Example:

"CSR Adjustment"

attributes
object | null

Placeholder for additional information

Example:
{ "productFamily": "Laptop computers" }
createdAt
string

Time cart was created

Example:

"2022-09-06T14:07:17.000Z"

updatedAt
string

Time cart was last updated

Example:

"2022-09-06T14:07:17.000Z"

Was this page helpful?