Skip to main content
object

A custom key-value pair for storing additional information on carts, cart lines, orders, and order line items. Common uses include gift wrapping requests, customer notes, and tracking whether a customer is a first-time buyer.

Attributes set on a cart carry over to the resulting order after checkout. Use the cartAttributesUpdate mutation to add or modify cart attributes. For a step-by-step guide, see managing carts with the Storefront API.

•String!
non-null

The key or name of the attribute. For example, "customersFirstOrder".

•String

The value of the attribute. For example, "true".


Was this section helpful?