cartCreate mutation

Creates a new cart.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
input ( CartInput )

The fields used to create a cart.

CartInput fields

  • attributes ([AttributeInput!])

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

  • buyerIdentity (CartBuyerIdentityInput)

    The customer associated with the cart.

  • discountCodes ([String!])

    The discount codes to apply to the cart.

  • A list of merchandise lines to add to the cart.

  • note (String)

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

Return fields

  • cart (Cart)

    The new cart.

  • userErrors ([CartUserError!]!)

    The list of errors that occurred from executing the mutation.

Creates a new cart.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
input ( CartInput )

The fields used to create a cart.

CartInput fields

  • attributes ([AttributeInput!])

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

  • buyerIdentity (CartBuyerIdentityInput)

    The customer associated with the cart.

  • discountCodes ([String!])

    The discount codes to apply to the cart.

  • A list of merchandise lines to add to the cart.

  • note (String)

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

Return fields

  • cart (Cart)

    The new cart.

  • userErrors ([CartUserError!]!)

    The list of errors that occurred from executing the mutation.