Fields


cart
Cart!
required

The Cart object containing all cart information.

errors
[CartError!]!
required

An array of possible cart errors.

Queries


cart(id: ID!)

Returns a CartResponse object by ID.


Mutations


createCart(input: CartCreateInput!)

Create a Cart with buyer identity details


updateCartItems(input: CartItemsUpdateInput!)

Updates only existing products in a Cart. Returns an error if prompted to update non-existing product.


updateCartBuyerIdentity(input: CartBuyerIdentityUpdateInput!)

Updates buyer identity if not provided in createCart mutation


addCartItems(input: CartItemsAddInput!)

Adds only non-existing products in a Cart. Skips already existing products.


deleteCartItems(input: CartItemsDeleteInput!)

Removes existing products in a Cart. Returns an error if prompted to delete non-existing product.