Attribute Input
A custom key-value pair that stores additional information on a cart or cart line. Attributes capture additional information like gift messages, special instructions, or custom order details. Learn more about managing carts with the Storefront API.
Anchor to FieldsFields
- key (String!)
- value (String!)
- •String!non-null
Key or name of the attribute.
- Anchor to valuevalue•String!non-null
Value of the attribute.
Anchor to Input objects using this inputInput objects using this input
- •INPUT OBJECT
The input fields for creating a
Cart. Used by themutation.Accepts merchandise lines, discount codes, gift card codes, and a note. You can also set custom attributes, metafields, buyer identity for international pricing, and delivery addresses.
- •INPUT OBJECT
- •INPUT OBJECT
The input fields for updating a merchandise line in a cart. Used by the
mutation.Specify the line item's
idalong with any fields to modify. You can change the quantity, swap the merchandise, update custom attributes, or associate a different selling plan.