LineItems

Update items

Updates the item information in the corresponding cart.

The Cart ID from the Create cart endpoint is used in the path parameter.

patch/orchestrator/carts/{cartId}/items

Request

Path parameters

cartIdstring required

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

Headers

x-fabric-tenant-idstring 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-idstring

Unique request ID for tracking.

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

Request body

Example request

{
  "lineItems": [
    {
      "price": {
        "total": 1570,
        "subtotal": 1530,
        "fulfillments": 40
      }
    }
  ]
}

Response

Items updated to the cart successfully

idstring

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

attributesAttributes

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

status'ACTIVE' | 'SOFT_DELETE'

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

channelIdstring

Channel ID

currencystring

The currency that the cart will use when an order is created.

updatedAtstring

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

createdAtstring

The date and time when a cart was created.

Changes

No recorded changes to this operation across all 2 revisions of this API.