Anchor to CartCreatePayloadCart
payloadCart Create Payload
Return type for mutation.
Anchor to FieldsFields
- cart (Cart)
- userErrors ([CartUserError!]!)
- warnings ([CartWarning!]!)
- Anchor to cartcart•Cart
The new cart.
- Anchor to userErrorsuser•[Cart
Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
- Anchor to warningswarnings•[Cart
Warning!]! non-null A list of warnings that occurred during the mutation.
Was this section helpful?
Anchor to Mutations with this payloadMutations with this payload
- cartCreate (CartCreatePayload)
- •mutation
Creates a new
Cartfor 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
that directs the buyer to complete their purchase.- Anchor to inputinput•Cart
Input The fields used to create a cart.
Arguments
Was this section helpful?