Cart Input
The input fields to create a cart.
Anchor to FieldsFields
- Anchor to attributesattributes•[Attribute
Input!] An array of key-value pairs that contains additional information about the cart.
The input must not contain more than
250
values.- Anchor to buyerIdentitybuyer•Cart
Identity Buyer Identity Input The customer associated with the cart. Used to determine [international pricing] (https://shopify.dev/custom-storefronts/internationalization/international-pricing). Buyer identity should match the customer's shipping address.
- Anchor to deliverydelivery•Cart
Delivery Input The delivery-related fields for the cart.
- Anchor to discountCodesdiscount•[String!]
Codes The case-insensitive discount codes that the customer added at checkout.
The input must not contain more than
250
values.- Anchor to giftCardCodesgift•[String!]
Card Codes The case-insensitive gift card codes.
The input must not contain more than
250
values.- Anchor to lineslines•[Cart
Line Input!] A list of merchandise lines to add to the cart.
The input must not contain more than
250
values.- Anchor to metafieldsmetafields•[Cart
Input Metafield Input!] The metafields to associate with this cart.
The input must not contain more than
250
values.- Anchor to notenote•String
A note that's associated with the cart. For example, the note can be a personalized message to the buyer.