Marketplace API / Mutations

addProductVariantToCart

Adds a product variant to the buyer's cart for its seller. Creates a cart when none exists for that seller. If the variant is already present, adds the requested quantity to the existing item.

addProductVariantToCart(
  input: AddProductVariantToCartInput!
): AddProductVariantToCartPayload!

Arguments

ArgumentTypeDescription
inputAddProductVariantToCartInput!The product variant and quantity to add.

Return type

AddProductVariantToCartPayload!