Anchor to Attribute
objectAttribute
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 mutation to add or modify cart attributes. For a step-by-step guide, see managing carts with the Storefront API.
Anchor to FieldsFields
- key (String!)
- value (String)
- •String!non-null
The key or name of the attribute. For example,
.- Anchor to valuevalue•String
The value of the attribute. For example,
"true".
Was this section helpful?