Skip to main content

bundleAddItems

DEPRECATED

Use bundleAddItemsAndReturnBundle instead

Add products to an existing bundle and return the added items.

Expands bundle contents with additional products while maintaining validation rules for unique products and single leader designation. This mutation is deprecated in favor of bundleAddItemsAndReturnBundle.

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
bundleAddItems(
id: String!
input: BundleAddItemsInput!
): [BundleItem!]! @deprecated

Arguments

bundleAddItems.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.

bundleAddItems.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

BundleItem object

Individual product item within a bundle configuration.

Represents a specific product included in a bundle with its role, pricing, and metadata. Contains information about the product's position and importance within the bundle structure.