Skip to main content

cartAddBundle

Add a product bundle to the shopping cart.

Adds a pre-configured bundle of products to the cart as a single unit. Bundles have special pricing and configuration rules that are applied automatically.

Possible errors:

  • CART_NOT_FOUND_ERROR: Cart with the specified ID does not exist
  • CART_ITEM_ADD_ERROR: Failed to add the bundle to the cart
  • BUNDLE_NOT_FOUND_ERROR: Specified bundle does not exist
  • BUNDLE_INVALID_ERROR: Bundle is not valid or available for purchase
  • BUNDLE_INVALID_CONFIGURATION_ERROR: Bundle configuration is invalid
cartAddBundle(
id: String!
input: CartAddBundleInput!
): Cart!

Arguments

cartAddBundle.id ● String! non-null scalar

Unique identifier of the cart to add the bundle to.

Must be a valid UUID format representing an existing cart.

cartAddBundle.input ● CartAddBundleInput! non-null input

Bundle information to add to the cart.

Contains bundle ID, quantity, and any bundle-specific configuration options.

Type

Cart object

Shopping cart entity for managing customer purchases.

Represents a shopping session containing products, customer information, addresses, payment preferences, and all data needed for order processing. Carts can be associated with different customer types and support various business models.