Skip to content

Bundles

A bundle sells several product variants as one line at its own price: a meal combo, a starter kit, a multi-pack. It has its own name, SKU, barcode, images, categories, and modifier set, separate from its components. Each component names a variant and a quantity.

Use a bundle when the set has one price and appears on the receipt as one line. When each item keeps its own price, sell the variants as separate lines. The catalog guide builds a breakfast combo from start to finish.

Selling a bundle#

Name the bundle on an order line with { "type": "bundle", "bundle_id": "bun_...", "quantity": 1 }. Flint copies the bundle's name, price, and SKU onto the line, derives taxability and tax category from the shared values on its component variants, and the line returns bundle_components with the components it was sold with, so a kitchen ticket or packing slip can list them. Payment links, invoices, subscription plans, subscriptions, and return replacements accept bundle lines the same way.

  • Modifiers. A bundle line uses only the bundle's own modifier_set_id. It doesn't inherit its components' modifier sets.
  • Stock. is_available_for_sale is true when the bundle is active, has at least one component, every component's variant and product are active, and the bundle's delivery_configuration_status isn't action_required. It doesn't guarantee stock. Flint checks and holds each tracked component's stock when the order claims it. Use inventory levels to see stock at each location.
  • Delivery. A physical component carries a delivery profile, copied from its variant unless you send delivery_profile_id on the component. delivery_configuration_status on each component, and on the bundle across all of them, shows whether delivery is ready. A bundle with no components reports not_applicable and matches the delivery_configuration_status=not_applicable list filter. Delivery configuration covers profiles and the bulk assignment that fills in components without one.

Components#

Send components when you create the bundle, or replace the whole array later. Flint enforces these rules across the array:

RuleDetails
One component per variantA variant_id can appear once. Express a count with quantity, from 1 to 9999, which defaults to 1.
Orderposition sets the display order and defaults to the component's index in the array. Responses list components in position order.
Shared tax treatmentAll component variants must share stored taxable and line_item_tax_category. An unset category means the merchant default and equals only another unset category.
Not gift cardsA gift card variant can't be a component. Sell it as its own line.
IDs come from FlintFlint assigns each bundle_component_id. Sending one on create returns 400 INVALID_REQUEST.

On create or component replacement, Flint compares every component with the first component in the request. Each differing component gets a 400 INVALID_REQUEST detail with code NOT_ALLOWED at components[index].variant_id. The message names the differing attribute. Setting taxable or line_item_tax_category on the bundle itself returns 400 INVALID_REQUEST with detail code UNKNOWN_FIELD.

A variant or product change that would make a containing bundle mixed returns 409 ACTION_NOT_ALLOWED with reason mixed_tax_treatment, retry mode none, and the bundles in blocking_resources. Remove the component from its bundle before changing its tax treatment, or choose components that already share the same treatment. An older mixed bundle cannot be added to an order: Flint returns 409 ACTION_NOT_ALLOWED with reason configuration_required until the components share the same treatment.

Each component returns a variant summary with the variant's name, sku, product_name, selected_options, and is_available_for_sale, so you can label it without reading the product.

Every bundle response, including list rows, carries the full components array and component_count. To page through a large bundle's components, or find the ones that need delivery setup, use GET /v1/bundles/{bundle_id}/components with delivery_profile_id or delivery_configuration_status=action_required.

Bundle categories carry {category_id, handle} references. List categories and join by category_id to display the current name. Renaming a category leaves the bundle and its version unchanged.

Status#

Bundle statusFinal
  • active moves to inactive on deactivate
  • inactive moves to active on activate
  • active moves to archived on DELETE
  • inactive moves to archived on DELETE
status on bundle
Final values do not change again
  • active
    The bundle can be sold. A bundle created without status is active.
  • inactive
    A draft or a paused bundle. It can't be sold, but you can edit it and activate it again.
  • archivedFinal
    Set only by DELETE. The bundle stays readable by ID, and past orders keep their reference. Lists leave it out unless you filter for status=archived. Any PATCH returns 409 ACTION_NOT_ALLOWED with reason: archived.

Note: What an active bundle needs

At least one component, an active product and variant behind every component, and an active delivery profile on every physical component. Flint checks these when you create an active bundle, activate one, or replace an active bundle's components. To create a draft without components, send "status": "inactive".

Change a bundle#

Replace the components#

Send the complete components array with the bundle's current version as expected_version. Include a component's bundle_component_id to keep it, leave the ID out to add a component, and omit a component to remove it. Each component you send takes its variant's current delivery profile unless you send delivery_profile_id, so send an override again to keep it. null clears a component's profile.

To keep Saturday admission in the weekend pass, drop Sunday admission, and add two drink tickets, starting from version 1:

cURL
curl -X PATCH https://api.withflintpay.com/v1/bundles/bun_01KEZF7C00CGKB9B5RM44A71SJ \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: weekend-pass-components-v1" \
  -H "Content-Type: application/json" \
  -d '{
    "expected_version": 1,
    "components": [
      { "bundle_component_id": "bunc_01KEZF7C00ZRGC96M9M90FT3EG", "variant_id": "var_01KEZF7C00SDPKNHP9DAVYBQZ9", "quantity": 1, "position": 0 },
      { "variant_id": "var_01KEZF7C00HQ3VW8D2M5RTX6YB", "quantity": 2, "position": 1 }
    ]
  }'

Sunday admission is left out, so Flint removes it. The bundle can stay active through the change, keeps its bundle_id, and sends bundle.updated. Orders, checkout sessions, invoices, subscriptions, and subscription plans that already include the bundle keep the components they were created with. New orders and checkout sessions use the new components, and a payment link shows them the next time it's read.

Other fields#

FieldHow an update applies it
imagesReplaces the whole gallery, like components, and needs expected_version. See images.
category_handlesReplaces the bundle's categories with the handles you send, up to 100. [] clears them. It doesn't need expected_version. A handle without an existing category returns 404 RESOURCE_NOT_FOUND.
Name, price, and SKUApply to new sales. Lines already sold keep what they were sold with.

Any update accepts expected_version as a check, even where it isn't required. Edit with the version you read explains which version to send.

A SKU is unique across every variant and bundle in the environment. A SKU or barcode another record has returns 409 ALREADY_EXISTS, and details[0].current_resource names that record. To find a bundle by SKU, list with the exact sku filter.

Changes that wait for other records#

Some changes stop while other records still sell the bundle. The request returns 409 RESOURCE_IN_USE, and details[0].blocking_resources lists up to 25 of those records, with the total in blocking_resource_count.

ChangeBlocked while the bundle is on
Set status to inactiveAn open checkout session, an open invoice payment attempt, an active payment link, a subscription plan that isn't archived, or an active subscription
Change the currency of unit_price_moneyAny of those, or an open order
Archive with DELETEAny of those, or an open order

An open order doesn't block deactivating, because the order keeps its own copy of the bundle. Other records don't block replacing components or changing the price within the same currency.

It works the other way too: while a bundle is active, the variants in its components and their products can't be set to inactive or archived. That write on the product or variant returns 409 RESOURCE_IN_USE with the bundle in blocking_resources.

Repeating a DELETE returns 200 with the archived bundle and changes nothing. Retire what you no longer sell covers repeats and expected_version on DELETE.

Read with the modifier set#

GET /v1/bundles and GET /v1/bundles/{bundle_id} accept expand=modifier_set, which adds the set, with its groups and choices, beside modifier_set_id. Every set entry includes modifier_group_id and the full modifier_group, whether its source is existing or inline. Embedded groups exclude archived choices, even when the group is archived. A bundle without a set returns modifier_set: null. The expansion needs commerce.catalog.read in addition to commerce.bundles.read; without it, the request returns 403 INSUFFICIENT_SCOPE with param: expand. Expand related records covers how Flint reads each page.

cURL
curl -G https://api.withflintpay.com/v1/bundles \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "status=active" \
  --data-urlencode "expand=modifier_set"

Webhook events#

  • bundle.created
    A bundle was created.
  • bundle.updated
    Its own fields, images, categories, modifier set, or components changed, Flint assigned a delivery profile to its components, or a change to a component's variant or product reached components[].variant or is_available_for_sale.
  • bundle.archived
    A bundle was archived.

A change to a component's variant or its product, such as a rename, updates components[].variant, advances the bundle's version, and sends bundle.updated, archived bundles included. Keep another system in sync covers mirroring bundles and backfilling them from the list.

Errors#

  • HTTP 400
    param names the field. An active bundle has no components (REQUIRED): add one, or create the bundle as inactive. A components or images replacement has no expected_version (REQUIRED): read the bundle and send its version. Components with differing taxability or categories get NOT_ALLOWED details at their components[index].variant_id, each naming the differing attribute. Other causes are a repeated variant_id, a quantity outside 1 to 9999, a gift card variant, a delivery_profile_id on a component that isn't physical, or a bundle_component_id on create.
  • HTTP 409
    details[0].reason says why. unsupported_state: a component's product or variant isn't active, and resource_type and current_status name it. configuration_required: a physical component has no active delivery profile. archived: the bundle is archived and can't change.
  • HTTP 409
    The bundle is still on a record that blocks this change. details[0].blocking_resources lists them. Resolve them, or set the bundle to inactive if that isn't blocked.
  • HTTP 409
    VERSION_CONFLICTRefresh, then retry
    The bundle changed since you read it. details[0].current_version is the new version. Read the bundle again before you resend.
  • HTTP 404
    A variant, category handle, delivery profile, or bundle_component_id you sent doesn't exist on this bundle or in this environment. param names it.
Build a catalogProducts, variants, modifiers, and a combo bundle, sold on one order.InventoryTrack stock for the variants inside a bundle and hold it when an order is placed.Catalog eventsEvery catalog event and the fields that change without one.

The Bundle object#

Several variants sold as one line at the bundle's price. A bundle line takes its components' shared taxability and tax category; all components must share both stored values. An unset category uses the merchant default and equals only another unset category.

Returned by GET /v1/bundles/{bundle_id} and carried by the endpoints below.

Attributes

barcodestring

Barcode assigned to this sellable item.

bundle_idstringRequired

Stable identifier of the bundle.

categoriesarray of objectRequired

Always present. Empty collections are returned as [].

component_countintegerRequired

Number of components in the bundle.

componentsarray of objectRequired

The bundle's components in position order, on every bundle response including list rows. [] only when the bundle has no components.

created_atstring

When this resource was created, as an RFC3339 timestamp.

delivery_configuration_statusenumRequired

Delivery readiness aggregated across the bundle's components. A bundle with no components reports `not_applicable`.

  • configured
  • action_required
  • not_applicable
descriptionstring

Description of the bundle shown to buyers.

external_reference_idstring

Caller-owned identifier for this resource in an external system.

imagesarray of objectRequired

Images attached to this resource, in display order. The first image is primary.

is_available_for_salebooleanRequired

Whether the bundle can be sold now: it is `active`, has at least one component, every component's variant and product are `active`, and `delivery_configuration_status` isn't `action_required`. Stock isn't considered.

merchant_idstring

Identifier of the merchant that owns this resource.

metadatamap of string

Caller-owned metadata stored on this resource.

modifier_setobject or null

Attached modifier set, included when expand=modifier_set is requested. Requires commerce.catalog.read in addition to the resource's read scope. Present only when `expand` includes `modifier_set`; `null` when expanded and there is no related modifier set.

modifier_set_idstring or nullRequired

ID of the modifier set attached to the bundle. `null` when no modifier set is attached.

namestringRequired

Bundle name shown to buyers.

skustring

Stock keeping unit assigned to this sellable item.

statusenumRequired

Bundle lifecycle status. Archived bundles remain readable and cannot be edited.

  • active
  • inactive
  • archived
unit_price_moneyobjectRequired

Price charged for one unit, in the currency's smallest unit.

updated_atstring

When this resource last changed, as an RFC3339 timestamp.

versionintegerRequired

Current resource version. Send it as expected_version to reject a write if the resource has changed.

JSON
{
  "bundle_id": "bun_01KEZF7C00CGKB9B5RM44A71SJ",
  "categories": [],
  "component_count": 2,
  "components": [
    {
      "bundle_component_id": "bunc_01KEZF7C00ZRGC96M9M90FT3EG",
      "delivery_configuration_status": "not_applicable",
      "position": 0,
      "product_id": "prod_01KEZF7C00027JTCXQ7TQF86X8",
      "quantity": 1,
      "variant": {
        "is_available_for_sale": true,
        "name": "Default",
        "product_id": "prod_01KEZF7C00027JTCXQ7TQF86X8",
        "product_name": "Saturday admission",
        "variant_id": "var_01KEZF7C00SDPKNHP9DAVYBQZ9"
      },
      "variant_id": "var_01KEZF7C00SDPKNHP9DAVYBQZ9"
    },
    {
      "bundle_component_id": "bunc_01KEZF7C000EPK5T1TDZVNWM0R",
      "delivery_configuration_status": "not_applicable",
      "position": 1,
      "product_id": "prod_01KEZF7C00002FSMXRT6JK6DPQ",
      "quantity": 1,
      "variant": {
        "is_available_for_sale": true,
        "name": "Default",
        "product_id": "prod_01KEZF7C00002FSMXRT6JK6DPQ",
        "product_name": "Sunday admission",
        "variant_id": "var_01KEZF7C000TEJSNB6R4Y4Q7BJ"
      },
      "variant_id": "var_01KEZF7C000TEJSNB6R4Y4Q7BJ"
    }
  ],
  "created_at": "2026-03-17T14:30:00Z",
  "delivery_configuration_status": "not_applicable",
  "images": [],
  "is_available_for_sale": true,
  "merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
  "modifier_set_id": null,
  "name": "Weekend pass",
  "status": "active",
  "unit_price_money": {
    "amount": 4500,
    "currency": "USD"
  },
  "updated_at": "2026-03-17T14:30:00Z",
  "version": 1
}

List bundles#

GET/v1/bundles

Requires scope commerce.bundles.read or commerce.bundles.write

Rate limit: read

List bundles. Default order: created_at descending, then bundle_id descending.

Query parameters

page_sizeinteger

Maximum number of results to return, from 1 to 100. Defaults to 20.

page_tokenstring

Opaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.

external_reference_idstring

Exact-match filter on the caller-owned external reference ID.

skustring

Filter by whole SKU, ignoring surrounding whitespace, case, and accents.

querystring

Search across bundle ID, external reference ID, name, description, SKU, and barcode. Text fields match any part of the value, and %, _ and \ are ordinary characters, not wildcards. IDs match from the start and need the type prefix, such as bun_01.

category_handlestring

Filter by category handle.

statusarray of enum

Filter by status. Omitted, the list leaves out archived rows; name archived to include them. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • active
  • inactive
  • archived
sort_byenum

Field to sort by. Defaults to created_at; ties are broken by bundle_id.

  • created_at
  • updated_at
  • name
sort_directionenum

Sort direction. Defaults to desc.

  • asc
  • desc
delivery_profile_idstring

Filter bundles with at least one component assigned to this delivery profile.

delivery_configuration_statusarray of enum

Filter by aggregated delivery readiness across bundle components. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • configured
  • action_required
  • not_applicable
created_afterstring

Inclusive lower bound on created_at.

created_beforestring

Exclusive upper bound on created_at.

updated_afterstring

Inclusive lower bound on updated_at.

updated_beforestring

Exclusive upper bound on updated_at.

expandarray of enum

Include related objects in the response. Supported expansions: modifier_set. Include the requested related resources using scoped batch reads for this page. Each relationship requires its existing target read scopes. Expansion changes the representation without changing pagination tokens. Limits: at most 10 unique expand paths per request.

  • modifier_set

Response · 200

Successful response.

dataarray of objectRequired

The requested bundle data.

metaobject

Additional information about this response.

next_page_tokenstring

Token for the next page. Omitted when there are no more results.

request_idstringRequired

Identifier of this API request, useful when contacting support.

curl https://api.withflintpay.com/v1/bundles \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Successful response.

JSON
{
  "data": [
    {
      "bundle_id": "bun_01KEZF7C00CGKB9B5RM44A71SJ",
      "categories": [],
      "component_count": 2,
      "components": [
        {
          "bundle_component_id": "bunc_01KEZF7C00ZRGC96M9M90FT3EG",
          "delivery_configuration_status": "not_applicable",
          "position": 0,
          "product_id": "prod_01KEZF7C00027JTCXQ7TQF86X8",
          "quantity": 1,
          "variant": {
            "is_available_for_sale": true,
            "name": "Default",
            "product_id": "prod_01KEZF7C00027JTCXQ7TQF86X8",
            "product_name": "Saturday admission",
            "variant_id": "var_01KEZF7C00SDPKNHP9DAVYBQZ9"
          },
          "variant_id": "var_01KEZF7C00SDPKNHP9DAVYBQZ9"
        },
        {
          "bundle_component_id": "bunc_01KEZF7C000EPK5T1TDZVNWM0R",
          "delivery_configuration_status": "not_applicable",
          "position": 1,
          "product_id": "prod_01KEZF7C00002FSMXRT6JK6DPQ",
          "quantity": 1,
          "variant": {
            "is_available_for_sale": true,
            "name": "Default",
            "product_id": "prod_01KEZF7C00002FSMXRT6JK6DPQ",
            "product_name": "Sunday admission",
            "variant_id": "var_01KEZF7C000TEJSNB6R4Y4Q7BJ"
          },
          "variant_id": "var_01KEZF7C000TEJSNB6R4Y4Q7BJ"
        }
      ],
      "created_at": "2026-03-17T14:30:00Z",
      "delivery_configuration_status": "not_applicable",
      "images": [],
      "is_available_for_sale": true,
      "merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
      "modifier_set_id": null,
      "name": "Weekend pass",
      "status": "active",
      "unit_price_money": {
        "amount": 4500,
        "currency": "USD"
      },
      "updated_at": "2026-03-17T14:30:00Z",
      "version": 1
    }
  ],
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6NM0VRZQQT1J5KW4NDWQY"
}

Create bundle#

POST/v1/bundlesIdempotent

Requires scope commerce.bundles.write

Rate limit: write

Creates a bundle: several product variants sold as one line at a single price. Send `name` and `unit_price_money`, and list the `components` (variants and quantities). An active bundle needs at least one component, every component must be active, and all components must share the same taxable setting and tax category. A SKU or barcode that another variant or bundle already uses fails with `ALREADY_EXISTS`.

Request body

barcodestring

Barcode assigned to this sellable item.

category_handlesarray of string

Relationship set of category handles that must already exist. Each handle has 1 to 100 characters (Unicode code points). Unknown handles return RESOURCE_NOT_FOUND. Replaces the whole set when present; send [] to clear it. On PATCH, omission leaves it unchanged. Does not require expected_version.

componentsarray of object

Variants included in the bundle and their quantities. All must share taxable and line_item_tax_category; an unset category equals only another unset category. Components are compared with the first input component, with a NOT_ALLOWED detail at each differing components[index].variant_id. Required when status is active; send status: inactive to create a draft without components.

descriptionstring

Description of the bundle shown to buyers.

external_reference_idstring

Caller-owned identifier for this resource in an external system.

imagesarray of one of

The complete desired gallery in display order. The first image is primary. Send [] to clear the gallery.

metadatamap of string

Caller-owned metadata. Values can't be empty strings. Keys starting with flint_ are reserved for Flint, are not returned, and cannot be written through the public API.

modifier_set_idstring or null

Attached modifier set. Send null on update to remove it.

namestringRequired

Bundle name shown to buyers. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.

skustring

Stock keeping unit assigned to this sellable item.

statusenum

Whether the bundle is active or inactive. Defaults to active; an active bundle requires components.

  • active
  • inactive
unit_price_moneyobjectRequired

Price charged for one unit, in the currency's smallest unit.

Response · 201

The created bundle.

dataobjectRequired

The requested bundle data.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, useful when contacting support.

curl -X POST https://api.withflintpay.com/v1/bundles \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "components": [
      {
        "quantity": 1,
        "variant_id": "var_01KEZF7C00SDPKNHP9DAVYBQZ9"
      },
      {
        "quantity": 1,
        "variant_id": "var_01KEZF7C000TEJSNB6R4Y4Q7BJ"
      }
    ],
    "name": "Weekend pass",
    "status": "active",
    "unit_price_money": {
      "amount": 4500,
      "currency": "USD"
    }
  }'

Get bundle#

GET/v1/bundles/{bundle_id}

Requires scope commerce.bundles.read or commerce.bundles.write

Rate limit: read

Returns one bundle by ID, with its price, components, and whether it is available for sale.

Path parameters

bundle_idstringRequired

Flint bundle ID. Must be a valid ID with prefix bun_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

Query parameters

expandarray of enum

Include related objects in the response. Supported expansions: modifier_set. Expand the attached modifier set. Limits: at most 10 unique expand paths per request.

  • modifier_set

Response · 200

The bundle.

Same response as Create bundle.

curl https://api.withflintpay.com/v1/bundles/bun_01KEZF7C00TQ6S76Z6CVQF5SVN \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

The bundle.

JSON
{
  "data": {
    "bundle_id": "bun_01KEZF7C00CGKB9B5RM44A71SJ",
    "categories": [],
    "component_count": 2,
    "components": [
      {
        "bundle_component_id": "bunc_01KEZF7C00ZRGC96M9M90FT3EG",
        "delivery_configuration_status": "not_applicable",
        "position": 0,
        "product_id": "prod_01KEZF7C00027JTCXQ7TQF86X8",
        "quantity": 1,
        "variant": {
          "is_available_for_sale": true,
          "name": "Default",
          "product_id": "prod_01KEZF7C00027JTCXQ7TQF86X8",
          "product_name": "Saturday admission",
          "variant_id": "var_01KEZF7C00SDPKNHP9DAVYBQZ9"
        },
        "variant_id": "var_01KEZF7C00SDPKNHP9DAVYBQZ9"
      },
      {
        "bundle_component_id": "bunc_01KEZF7C000EPK5T1TDZVNWM0R",
        "delivery_configuration_status": "not_applicable",
        "position": 1,
        "product_id": "prod_01KEZF7C00002FSMXRT6JK6DPQ",
        "quantity": 1,
        "variant": {
          "is_available_for_sale": true,
          "name": "Default",
          "product_id": "prod_01KEZF7C00002FSMXRT6JK6DPQ",
          "product_name": "Sunday admission",
          "variant_id": "var_01KEZF7C000TEJSNB6R4Y4Q7BJ"
        },
        "variant_id": "var_01KEZF7C000TEJSNB6R4Y4Q7BJ"
      }
    ],
    "created_at": "2026-03-17T14:30:00Z",
    "delivery_configuration_status": "not_applicable",
    "images": [],
    "is_available_for_sale": true,
    "merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
    "modifier_set_id": null,
    "name": "Weekend pass",
    "status": "active",
    "unit_price_money": {
      "amount": 4500,
      "currency": "USD"
    },
    "updated_at": "2026-03-17T14:30:00Z",
    "version": 1
  },
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6NM0VRZQQT1J5KW4NDWQY"
}

Update bundle#

PATCH/v1/bundles/{bundle_id}Idempotent

Requires scope commerce.bundles.write

Rate limit: write

Applies a sparse update to a bundle: only the fields you send change. Sending `components` replaces the whole list; omitted components are removed. `expected_version` is required when you send `components` or `images`, and a stale version fails with `VERSION_CONFLICT`. A SKU or barcode that another variant or bundle already uses fails with `ALREADY_EXISTS`. Fails with `ACTION_NOT_ALLOWED` and reason `archived` when the resource, or the parent it belongs to, is archived. The error names the archived resource and its `current_status`.

Path parameters

bundle_idstringRequired

Flint bundle ID. Must be a valid ID with prefix bun_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

Request body

barcodestring or null

Send null to clear it.

category_handlesarray of string

Relationship set of category handles that must already exist. Each handle has 1 to 100 characters (Unicode code points). Unknown handles return RESOURCE_NOT_FOUND. Replaces the whole set when present; send [] to clear it. On PATCH, omission leaves it unchanged. Does not require expected_version.

componentsarray of object

Replaces all bundle components atomically. Include an existing bundle_component_id to retain a member. Omitted members are removed. All must share taxable and line_item_tax_category; an unset category equals only another unset category. Components are compared with the first input component, with a NOT_ALLOWED detail at each differing components[index].variant_id. Null is not accepted.

descriptionstring or null

Send null to clear it.

expected_versioninteger

Resource version last read by the caller. Required when components or images is present.

external_reference_idstring or null

Caller-owned identifier for this resource in an external system. Send null to clear it.

imagesarray of one of

The complete desired gallery in display order. The first image is primary. Send [] to clear the gallery.

metadatamap of string or null

Caller-owned metadata. Omit this field to leave metadata unchanged. Send an object to merge by key, set a key to null to remove it, or set metadata to null to clear all caller-owned metadata. An empty object makes no change. Values can't be empty strings. Keys starting with flint_ are reserved for Flint, are not returned, and cannot be written through the public API. This operation also limits the metadata object you send, before merging: at most 50 keys, counting null deletions, each key 1 to 256 Unicode code points, and at most 32768 UTF-8 bytes of keys plus values.

modifier_set_idstring or null

Attached modifier set. Send null on update to remove it.

namestring

Bundle name shown to buyers. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.

skustring or null

Send null to clear it.

statusenum

Whether the bundle is active or inactive. An inactive bundle cannot be sold.

  • active
  • inactive
unit_price_moneyobject

Price charged for one unit, in the currency's smallest unit.

Response · 200

The updated bundle.

Same response as Create bundle.

curl -X PATCH https://api.withflintpay.com/v1/bundles/bun_01KEZF7C00TQ6S76Z6CVQF5SVN \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "expected_version": 1,
    "name": "Weekend admission pass"
  }'

Retire bundle#

DELETE/v1/bundles/{bundle_id}Idempotent

Requires scope commerce.bundles.write

Rate limit: write

Archives a bundle and returns its final state. Returns the archived resource as a read does. Deleting an already archived resource returns it again without changing its version or `updated_at`, sending a webhook, or checking references. A stale `expected_version` fails with `VERSION_CONFLICT` and the `current_version`, even when the resource is already archived.

Path parameters

bundle_idstringRequired

Flint bundle ID. Must be a valid ID with prefix bun_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

Query parameters

expected_versioninteger

Optional bundle version last read by the caller.

Response · 200

The archived bundle.

Same response as Create bundle.

curl -X DELETE https://api.withflintpay.com/v1/bundles/bun_01KEZF7C00TQ6S76Z6CVQF5SVN \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

List bundle components#

GET/v1/bundles/{bundle_id}/components

Requires scope commerce.bundles.read or commerce.bundles.write

Rate limit: read

List bundle components. Default order: position ascending, then bundle_component_id ascending.

Path parameters

bundle_idstringRequired

Flint bundle ID. Must be a valid ID with prefix bun_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.

Query parameters

page_sizeinteger

Maximum number of results to return, from 1 to 100. Defaults to 20.

page_tokenstring

Opaque, signed next_page_token from the previous response, bound to the list and caller. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An altered, invalid, expired, or mismatched token returns a validation error.

delivery_profile_idstring

Filter by assigned delivery profile ID.

delivery_configuration_statusarray of enum

Filter by delivery readiness. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • configured
  • action_required
  • not_applicable

Response · 200

Successful response.

dataarray of objectRequired

The requested bundle component data.

metaobject

Additional information about this response.

next_page_tokenstring

Token for the next page. Omitted when there are no more results.

request_idstringRequired

Identifier of this API request, useful when contacting support.

curl https://api.withflintpay.com/v1/bundles/bun_01KEZF7C00TQ6S76Z6CVQF5SVN/components \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Successful response.

JSON
{
  "data": [],
  "meta": {
    "api_version": "2026-09-07"
  },
  "next_page_token": "example",
  "request_id": "req_01KWM6BH96R4V5XE6XBWK603S4"
}

Was this helpful?