Skip to main content
object

A warning that occurred during a cart mutation.

•CartWarningCode!
non-null

The code of the warning.

•String!
non-null

The message text of the warning.

•ID!
non-null

The target of the warning.


Was this section helpful?

•mutation

Updates the attributes on a cart.

Arguments

•[AttributeInput!]!
required

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

The input must not contain more than 250 values.

•ID!
required

The ID of the cart.


•mutation

Updates customer information associated with a cart. Buyer identity is used to determine international pricing and should match the customer's shipping address.

Arguments

•ID!
required

The ID of the cart.

•CartBuyerIdentityInput!
required

The customer associated with the cart. Used to determine international pricing. Buyer identity should match the customer's shipping address.


•mutation

Creates a new cart.

Arguments

•CartInput

The fields used to create a cart.


•mutation

Adds delivery addresses to the cart.

Arguments

•ID!
required

The ID of the cart.

•[CartSelectableAddressInput!]!
required

A list of delivery addresses to add to the cart.

The input must not contain more than 250 values.


•mutation

Removes delivery addresses from the cart.

Arguments

•ID!
required

The ID of the cart.

•[ID!]!
required

A list of delivery addresses by handle to remove from the cart.

The input must not contain more than 250 values.


•mutation

Replaces delivery addresses on the cart.

Arguments

•ID!
required

The ID of the cart.

•[CartSelectableAddressInput!]!
required

A list of delivery addresses to replace on the cart.

The input must not contain more than 250 values.


•mutation

Updates one or more delivery addresses on a cart.

Arguments

•ID!
required

The ID of the cart.

•[CartSelectableAddressUpdateInput!]!
required

The delivery addresses to update.

The input must not contain more than 250 values.


•mutation

Updates the discount codes applied to the cart.

Arguments

•ID!
required

The ID of the cart.

•[String!]!
required

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

The input must not contain more than 250 values.


•mutation

Adds gift card codes to the cart without replacing existing ones.

Arguments

•ID!
required

The ID of the cart.

•[String!]!
required

The case-insensitive gift card codes to add.

The input must not contain more than 250 values.


•mutation

Removes the gift card codes applied to the cart.

Arguments

•ID!
required

The ID of the cart.

•[ID!]!
required

The gift cards to remove.

The input must not contain more than 250 values.


•mutation

Updates the gift card codes applied to the cart.

Arguments

•ID!
required

The ID of the cart.

•[String!]!
required

The case-insensitive gift card codes.

The input must not contain more than 250 values.


•mutation

Adds a merchandise line to the cart.

Arguments

•ID!
required

The ID of the cart.

•[CartLineInput!]!
required

A list of merchandise lines to add to the cart.

The input must not contain more than 250 values.


•mutation

Removes one or more merchandise lines from the cart.

Arguments

•ID!
required

The ID of the cart.

•[ID!]!
required

The merchandise line IDs to remove.

The input must not contain more than 250 values.


•mutation

Updates one or more merchandise lines on a cart.

Arguments

•ID!
required

The ID of the cart.

•[CartLineUpdateInput!]!
required

The merchandise lines to update.

The input must not contain more than 250 values.


•mutation

Updates the note on the cart.

Arguments

•ID!
required

The ID of the cart.

•String!
required

The note on the cart.


•mutation

Update the selected delivery options for a delivery group.

Arguments

•ID!
required

The ID of the cart.

Anchor to selectedDeliveryOptionsselectedDeliveryOptions
•[CartSelectedDeliveryOptionInput!]!
required

The selected delivery options.

The input must not contain more than 250 values.



Was this section helpful?