Skip to main content
POST
/
carts
/
{cartId}
/
items
/
{itemId}
/
actions
/
add-attributes
Update item attributes
curl --request POST \
  --url https://api.fabric.inc/v3/carts/{cartId}/items/{itemId}/actions/add-attributes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-fabric-tenant-id: <x-fabric-tenant-id>' \
  --data '{
  "attributes": {
    "test": "test"
  }
}'
{
  "id": "<string>",
  "sku": "<string>",
  "refId": "<string>",
  "quantity": 123,
  "priceListId": "<string>",
  "price": {
    "unit": 10,
    "amount": 100
  },
  "fees": [
    {
      "id": "a8577d7f-0d4d-4b22-8e85-7b4a2e90dc93",
      "name": "Eco Fee",
      "price": {
        "amount": 12.99
      },
      "taxable": true,
      "attributes": {
        "source": "eco"
      },
      "tax": {
        "total": 3,
        "collection": [
          {
            "amount": 3,
            "attributes": {
              "rate": "5.0",
              "type": "COUNTY"
            }
          }
        ]
      },
      "updatedAt": "2024-06-13T16:50:00.682Z",
      "createdAt": "2024-06-13T16:50:00.682Z",
      "taxDetails": {
        "destinationAddress": "c86f777b-1885-4ddf-961d-542ba80a69b8",
        "originAddress": "c86f777b-1885-4ddf-961d-542ba80a69b8"
      }
    }
  ],
  "adjustments": [
    {
      "id": "a8577d7f-0d4d-4b22-8e85-7b4a2e90dc93",
      "price": {
        "amount": 12.99
      },
      "reason": "Price adjustment from customer representative.",
      "attributes": {
        "source": "CSR"
      },
      "updatedAt": "2024-06-13T16:50:00.682Z",
      "createdAt": "2024-06-13T16:50:00.682Z"
    }
  ],
  "fulfillment": {
    "id": "6d65755f-b1d9-4c9d-bb5b-118d317f8db4",
    "price": {
      "amount": 12.99
    },
    "inventory": {
      "type": "backOrder",
      "channels": {
        "networkCode": "ShipToHome"
      }
    },
    "tax": {
      "total": 3,
      "collection": [
        {
          "amount": 3,
          "attributes": {
            "rate": "5.0",
            "type": "COUNTY"
          }
        }
      ]
    }
  },
  "promotions": [
    {
      "id": "bb44db95-6fbd-4eed-a1ed-4d99bc91250f",
      "amount": 15,
      "quantity": 3,
      "proration": {
        "spread": [
          {
            "amount": 5,
            "quantity": 3
          }
        ]
      }
    }
  ],
  "taxCode": "<string>",
  "tax": [
    {
      "amount": 3,
      "attributes": {
        "rate": "5.0",
        "type": "COUNTY"
      }
    }
  ],
  "attributes": {},
  "updatedAt": "2024-06-13T16:50:00.682Z",
  "createdAt": "2024-06-13T16:50:00.682Z"
}

Authorizations

Authorization
string
header
required

Headers

x-fabric-tenant-id
string
required
Example:
x-fabric-request-id
string
Example:
x-fabric-channel-id
string
Example:

Path Parameters

cartId
string
required
itemId
string
required

Body

application/json
attributes
object
required
Example:

Response

id
string
sku
string
refId
string
quantity
integer
priceListId
string
price
object
fees
object[]
adjustments
object[]
fulfillment
object
promotions
object[]
taxCode
string
tax
object[]
attributes
object
updatedAt
string
Example:
createdAt
string
Example: