Skip to main content

bundleAddItemsAndReturnBundle

Add products to an existing bundle and return the updated bundle.

Expands bundle contents with additional products while maintaining validation rules for unique products and single leader designation. Returns the complete updated bundle with pricing calculations.

Possible errors:

  • BUNDLE_NOT_FOUND_ERROR: Bundle with the specified ID does not exist
  • BUNDLE_ITEM_ALREADY_EXISTS_ERROR: One or more products already exist in the bundle
  • ADD_BUNDLE_ITEMS_ERROR: Failed to add items to the bundle
  • BUNDLE_ITEMS_NON_UNIQUE_ERROR: Bundle can have only one leader item
  • FORBIDDEN: Insufficient permissions to modify bundles
bundleAddItemsAndReturnBundle(
id: String!
input: BundleAddItemsInput!
): Bundle!

Arguments

bundleAddItemsAndReturnBundle.id ● String! non-null scalar

Unique identifier of the bundle to modify.

Must be a valid UUID format representing an existing bundle in the system.

bundleAddItemsAndReturnBundle.input ● BundleAddItemsInput! non-null input

Items to add to the bundle.

Contains the product configurations and roles to be added to the existing bundle.

Type

Bundle object

Product bundle entity representing a collection of products sold together.

Contains bundle configuration, pricing information, and associated product items with comprehensive metadata for bundle management and sales operations.