Skip to main content
payload

Return type for cartCreate mutation.

•Cart

The new cart.

•[CartUserError!]!
non-null

The list of errors that occurred from executing the mutation.

•[CartWarning!]!
non-null

A list of warnings that occurred during the mutation.


Was this section helpful?

Anchor to Mutations with this payloadMutations with this payload

•mutation

Creates a new Cart for a buyer session. You can optionally initialize the cart with merchandise lines, discount codes, gift card codes, buyer identity for international pricing, and custom attributes.

The returned cart includes a checkoutUrl that directs the buyer to complete their purchase.

Arguments

•CartInput

The fields used to create a cart.



Was this section helpful?