Skip to main content
payload

Return type for cartCreate mutation.

•Cart

The new cart.

Show fields
•[CartUserError!]!
non-null

The list of errors that occurred from executing the mutation.

Show fields
•[CartWarning!]!
non-null

A list of warnings that occurred during the mutation.

Show fields

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.

Show payload

Arguments

•CartInput

The fields used to create a cart.

Show input fields


Was this section helpful?