Anchor to section titled 'undefined'

productBundleCreate
mutation

Requires write_products access scope. Also: The shop must have access to bundles feature.

Creates a new componentized product.


Input for creating a componentized product.


Was this section helpful?

The asynchronous ProductBundleOperation creating the componentized product.

The list of errors that occurred from executing the mutation.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation productBundleCreate($input: ProductBundleCreateInput!) {
  productBundleCreate(input: $input) {
    productBundleOperation {
      # ProductBundleOperation fields
    }
    userErrors {
      field
      message
    }
  }
}
Hide code
Input
Copy
{
  "input": {
    "components": [
      {
        "optionSelections": [
          {
            "componentOptionId": "gid://shopify/<objectName>/10079785100",
            "name": "<your-name>",
            "values": [
              "<your-values>"
            ]
          }
        ],
        "productId": "gid://shopify/<objectName>/10079785100",
        "quantity": 1,
        "quantityOption": {
          "name": "<your-name>",
          "values": [
            {
              "name": "<your-name>",
              "quantity": 1
            }
          ]
        }
      }
    ],
    "title": "<your-title>"
  }
}
input ProductBundleCreateInput {
  components: [ProductBundleComponentInput!]!
  title: String!
}

input ProductBundleComponentInput {
  optionSelections: [ProductBundleComponentOptionSelectionInput!]!
  productId: ID!
  quantity: Int
  quantityOption: ProductBundleComponentQuantityOptionInput
}