Skip to main content
input_object

The input fields for creating a Cart. Used by the cartCreate mutation.

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.

•[AttributeInput!]

An array of key-value pairs that contains additional information about the cart.

The input must not contain more than 250 values.

Show input fields
•CartBuyerIdentityInput

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.

Show input fields
•CartDeliveryInput

The delivery-related fields for the cart.

Show input fields
•[String!]

The case-insensitive discount codes that the customer added at checkout.

The input must not contain more than 250 values.

•[String!]

The case-insensitive gift card codes.

The input must not contain more than 250 values.

•[CartLineInput!]

A list of merchandise lines to add to the cart.

The input must not contain more than 250 values.

Show input fields
•[CartInputMetafieldInput!]

The metafields to associate with this cart.

The input must not contain more than 250 values.

Show input fields
•String

A note that's associated with the cart. For example, the note can be a personalized message to the buyer.


Was this section helpful?

Anchor to Mutations using this inputMutations using this input


Was this section helpful?