Represents a shopping cart that contains items from one or more stores, such as Amazon or Shopify. It is used to manage the shopping experience, track selected items, and store buyer information.
ID
) of the cart, used to reference and interact with the cart in subsequent API operations.Store
objects (either AmazonStore or ShopifyStore), each representing a store with items in the cart. Each store object contains its own specific data, such as store name, cart lines, and offer information.getCart(id: ID!)
Returns a Cart
object by ID.
cartsByQuery(filter, pagination)
Returns carts sorted by createdAt
in descending order.
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 a 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 a non-existing product.