Add a product fixed bundle
A product fixed bundle is a bundle that's configured at the product level. This guide shows you how to add a product fixed bundle using the productBundleCreate
mutation.
Anchor to What you'll learnWhat you'll learn
In this tutorial, you'll learn how to do the following tasks:
- Use the GraphQL Admin API to create a bundle
- Poll the status of the bundle creation job
- Use the GraphQL Admin API to update a bundle
Anchor to RequirementsRequirements
- You've created a Partner account.
- You've created a development store.
- You've created an app that uses Shopify CLI 3.49.5 or higher. If you previously installed Shopify CLI, then make sure that you're using the latest version. If you plan to create a UI for your extension, then start with the Remix app template.
- You've installed Node.js 16 or higher.
- You've installed your app on the development store.
- Your app can make authenticated requests to the GraphQL Admin API.
- Your app has the
write_products
access scope. Learn how to configure your access scopes using Shopify CLI.
Anchor to How it worksHow it works
A product fixed bundle is modeled as a product and is associated with other products using the bundleComponents
relationship. This relationship is dictated by which options are chosen, for each component, when creating the bundle.
The bundle parent variant's price determines the price, while the inventory of each component's variants determines the bundle inventory. This is the same for variant fixed bundles.
A product has a bundleComponents
field that determines the bundles' components.

The next diagram shows an example of a product ("The Hair and Skin Bundle") that models a bundle and contains the following components: "Natural Shampoo 50 ml" and "Coconut Conditioner". The bundle is modeled by selecting which option values should be considered for each component.

Anchor to Limitations and considerationsLimitations and considerations
- A bundle can have up to 30 components.
- After an app has assigned components to a bundle, only that app can manage the components of the bundle.
- Nested bundles aren't supported. A bundle can't have components and be part of another bundle simultaneously.
Anchor to Step 1: Create a bundleStep 1: Create a bundle
To create a product fixed bundle, you can run the productBundleCreate
mutation.
The following example creates a bundle product ("The Hair and Skin Bundle") with two products as components (Shampoo and Soap). The mutation will return a productBundleOperation
that you can use later to poll for the operation status.
POST https://{shop}.myshopify.com/api/{api_version}/graphql.json
GraphQL query
Variables
JSON response
Anchor to Step 2: Poll the status of the bundle creation jobStep 2: Poll the status of the bundle creation job
After running the productBundleCreate
mutation, you need to poll the status of the resulting product operation to know when the bundle is created.
The following example polls the status of the bundle creation job.
POST https://{shop}.myshopify.com/api/{api_version}/graphql.json
GraphQL query
Variables
JSON response
Anchor to Step 3: Update the bundleStep 3: Update the bundle
To update a bundle, you can run the productBundleUpdate
mutation. The following example updates the bundle created previously by removing the soap component and adding a sponge component.
POST https://{shop}.myshopify.com/api/{api_version}/graphql.json
GraphQL query
Variables
JSON response
You can poll the status of the bundle update operation in the same way as you did for the bundle creation operation.
Anchor to Next stepsNext steps
- Learn how to create variant fixed bundles.