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_saleistruewhen the bundle isactive, has at least one component, every component's variant and product areactive, and the bundle'sdelivery_configuration_statusisn'taction_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_idon the component.delivery_configuration_statuson each component, and on the bundle across all of them, shows whether delivery is ready. A bundle with no components reportsnot_applicableand matches thedelivery_configuration_status=not_applicablelist 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:
| Rule | Details |
|---|---|
| One component per variant | A variant_id can appear once. Express a count with quantity, from 1 to 9999, which defaults to 1. |
| Order | position sets the display order and defaults to the component's index in the array. Responses list components in position order. |
| Shared tax treatment | All 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 cards | A gift card variant can't be a component. Sell it as its own line. |
| IDs come from Flint | Flint 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#
- 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 bundleactiveThe bundle can be sold. A bundle created withoutstatusisactive.inactiveA draft or a paused bundle. It can't be sold, but you can edit it and activate it again.archivedFinalSet only byDELETE. The bundle stays readable by ID, and past orders keep their reference. Lists leave it out unless you filter forstatus=archived. AnyPATCHreturns409 ACTION_NOT_ALLOWEDwithreason: 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 -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#
| Field | How an update applies it |
|---|---|
images | Replaces the whole gallery, like components, and needs expected_version. See images. |
category_handles | Replaces 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 SKU | Apply 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.
| Change | Blocked while the bundle is on |
|---|---|
Set status to inactive | An 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_money | Any of those, or an open order |
Archive with DELETE | Any 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 -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 reachedcomponents[].variantoris_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#
- StatusHTTP 400CodeINVALID_
REQUEST What to doparamnames the field. An active bundle has no components (REQUIRED): add one, or create the bundle asinactive. Acomponentsorimagesreplacement has noexpected_version(REQUIRED): read the bundle and send itsversion. Components with differing taxability or categories getNOT_ALLOWEDdetails at theircomponents[index].variant_id, each naming the differing attribute. Other causes are a repeatedvariant_id, a quantity outside 1 to 9999, a gift card variant, adelivery_profile_idon a component that isn't physical, or abundle_component_idon create. - StatusHTTP 409What to do
details[0].reasonsays why.unsupported_state: a component's product or variant isn't active, andresource_typeandcurrent_statusname it.configuration_required: a physical component has no active delivery profile.archived: the bundle is archived and can't change. - StatusHTTP 409CodeRESOURCE_
IN_ USE What to doThe bundle is still on a record that blocks this change.details[0].blocking_resourceslists them. Resolve them, or set the bundle toinactiveif that isn't blocked. - StatusHTTP 409What to doThe bundle changed since you read it.
details[0].current_versionis the new version. Read the bundle again before you resend. - StatusHTTP 404What to doA variant, category handle, delivery profile, or
bundle_component_idyou sent doesn't exist on this bundle or in this environment.paramnames it.
Related#
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
barcodestringBarcode assigned to this sellable item.
bundle_idstringRequiredStable identifier of the bundle.
categoriesarray of objectRequiredAlways present. Empty collections are returned as [].
category_idstringRequiredStable identifier of the category.
handlestringRequiredImmutable handle of the referenced category. Read the category resource for its current name.
component_countintegerRequiredNumber of components in the bundle.
componentsarray of objectRequiredThe bundle's components in position order, on every bundle response including list rows. [] only when the bundle has no components.
bundle_component_idstringRequiredStable identifier of this component within its bundle.
delivery_configuration_reasonenumReason the component's delivery configuration needs attention.
delivery_profile_missingdelivery_profile_inactive
delivery_configuration_statusenumRequiredWhether the component's delivery configuration is ready, needs attention, or does not apply.
configuredaction_requirednot_applicable
delivery_profile_idstringDelivery profile used for this component, including any component override.
positionintegerRequiredDisplay order among the bundle's components, starting at zero.
product_idstringIdentifier of the product the component's variant belongs to.
quantityintegerRequiredWhole-number quantity; fractional quantities are not supported.
variantobjectSummary of the component's variant and its selected options.
variant_idstringRequiredIdentifier of the product variant included in the bundle.
created_atstringWhen this resource was created, as an RFC3339 timestamp.
delivery_configuration_statusenumRequiredDelivery readiness aggregated across the bundle's components. A bundle with no components reports `not_applicable`.
configuredaction_requirednot_applicable
descriptionstringDescription of the bundle shown to buyers.
external_reference_idstringCaller-owned identifier for this resource in an external system.
imagesarray of objectRequiredImages attached to this resource, in display order. The first image is primary.
altstringAlternative text describing the image for accessibility.
file_idstringIdentifier of the file attached as this image.
heightintegerRequiredImage height in pixels, when known.
source_referencestringCaller-owned reference identifying this attachment within its gallery.
urlstringRequiredURL of the image.
widthintegerRequiredImage width in pixels, when known.
is_available_for_salebooleanRequiredWhether 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_idstringIdentifier of the merchant that owns this resource.
metadatamap of stringCaller-owned metadata stored on this resource.
modifier_setobject or nullAttached 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.
created_atstringWhen the modifier set was created, as an RFC3339 timestamp.
external_reference_idstringCaller-owned identifier for this resource in an external system.
merchant_idstringIdentifier of the merchant that owns this modifier set.
metadatamap of stringCaller-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_groupsarray of objectRequiredOrdered group entries in this set, including the full content of reusable groups and groups owned by the set.
modifier_set_idstringRequiredStable identifier of the modifier set assigned to catalog items.
namestringRequiredName used to identify this modifier set.
statusenumRequiredLifecycle status of the modifier set. Only active sets can be offered to buyers; archived sets remain readable and cannot be edited.
activeinactivearchived
updated_atstringWhen the modifier set or any group it contains last changed, as an RFC3339 timestamp.
versionintegerRequiredVersion of the modifier set, including the groups it contains.
modifier_set_idstring or nullRequiredID of the modifier set attached to the bundle. `null` when no modifier set is attached.
namestringRequiredBundle name shown to buyers.
skustringStock keeping unit assigned to this sellable item.
statusenumRequiredBundle lifecycle status. Archived bundles remain readable and cannot be edited.
activeinactivearchived
unit_price_moneyobjectRequiredPrice charged for one unit, in the currency's smallest unit.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
updated_atstringWhen this resource last changed, as an RFC3339 timestamp.
versionintegerRequiredCurrent resource version. Send it as expected_version to reject a write if the resource has changed.
{
"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#
/v1/bundlesRequires 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_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, 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_idstringExact-match filter on the caller-owned external reference ID.
skustringFilter by whole SKU, ignoring surrounding whitespace, case, and accents.
querystringSearch 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_handlestringFilter by category handle.
statusarray of enumFilter 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.
activeinactivearchived
sort_byenumField to sort by. Defaults to created_at; ties are broken by bundle_id.
created_atupdated_atname
sort_directionenumSort direction. Defaults to desc.
ascdesc
delivery_profile_idstringFilter bundles with at least one component assigned to this delivery profile.
delivery_configuration_statusarray of enumFilter 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.
configuredaction_requirednot_applicable
created_afterstringInclusive lower bound on created_at.
created_beforestringExclusive upper bound on created_at.
updated_afterstringInclusive lower bound on updated_at.
updated_beforestringExclusive upper bound on updated_at.
expandarray of enumInclude 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 objectRequiredThe requested bundle data.
barcodestringBarcode assigned to this sellable item.
bundle_idstringRequiredStable identifier of the bundle.
categoriesarray of objectRequiredAlways present. Empty collections are returned as [].
component_countintegerRequiredNumber of components in the bundle.
componentsarray of objectRequiredThe bundle's components in position order, on every bundle response including list rows. [] only when the bundle has no components.
created_atstringWhen this resource was created, as an RFC3339 timestamp.
delivery_configuration_statusenumRequiredDelivery readiness aggregated across the bundle's components. A bundle with no components reports `not_applicable`.
configuredaction_requirednot_applicable
descriptionstringDescription of the bundle shown to buyers.
external_reference_idstringCaller-owned identifier for this resource in an external system.
imagesarray of objectRequiredImages attached to this resource, in display order. The first image is primary.
is_available_for_salebooleanRequiredWhether 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_idstringIdentifier of the merchant that owns this resource.
metadatamap of stringCaller-owned metadata stored on this resource.
modifier_setobject or nullAttached 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 nullRequiredID of the modifier set attached to the bundle. `null` when no modifier set is attached.
namestringRequiredBundle name shown to buyers.
skustringStock keeping unit assigned to this sellable item.
statusenumRequiredBundle lifecycle status. Archived bundles remain readable and cannot be edited.
activeinactivearchived
unit_price_moneyobjectRequiredPrice charged for one unit, in the currency's smallest unit.
updated_atstringWhen this resource last changed, as an RFC3339 timestamp.
versionintegerRequiredCurrent resource version. Send it as expected_version to reject a write if the resource has changed.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
next_page_tokenstringToken for the next page. Omitted when there are no more results.
request_idstringRequiredIdentifier 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.
{
"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#
/v1/bundlesIdempotentRequires 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
barcodestringBarcode assigned to this sellable item.
category_handlesarray of stringRelationship 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 objectVariants 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.
delivery_profile_idstring or nullDelivery profile for this component. Omit it to copy the variant's current profile when the component is saved; later changes to the variant's profile don't follow. On update, omitting it on a retained component replaces any override with the variant's current profile, so resend it to keep it. Send null to leave the component without a profile, which makes a physical component `action_required` and a digital or service component `not_applicable` with no delivery requirement. Digital and service components never use defaults; explicit and inherited profiles must be required/manual with allowed_types exactly [digital] or [service], matching the component product type. Existing order delivery snapshots do not change.
positionintegerDisplay order among the bundle's components, starting at zero.
quantityintegerWhole-number quantity; fractional quantities are not supported.
variant_idstringRequiredIdentifier of the product variant included in the bundle.
descriptionstringDescription of the bundle shown to buyers.
external_reference_idstringCaller-owned identifier for this resource in an external system.
imagesarray of one ofThe complete desired gallery in display order. The first image is primary. Send [] to clear the gallery.
Send exactly one of these
The `Source URL` variant of `ImageInput`.
altstringAlternative text describing the image for accessibility.
source_referencestringAn opaque reference for this attachment, unique within its gallery. Whitespace and case are preserved.
source_urlstringRequiredA public image URL for Flint to fetch, or an untransformed canonical image.url returned by Flint. Send exactly one of source_url or file_id. Canonical Flint URLs attach without another fetch. Flint doesn't download a source_url again while the image it produced is still in this field.
metadatamap of stringCaller-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 nullAttached modifier set. Send null on update to remove it.
namestringRequiredBundle name shown to buyers. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
skustringStock keeping unit assigned to this sellable item.
statusenumWhether the bundle is active or inactive. Defaults to active; an active bundle requires components.
activeinactive
unit_price_moneyobjectRequiredPrice charged for one unit, in the currency's smallest unit.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
Response · 201
The created bundle.
dataobjectRequiredThe requested bundle data.
barcodestringBarcode assigned to this sellable item.
bundle_idstringRequiredStable identifier of the bundle.
categoriesarray of objectRequiredAlways present. Empty collections are returned as [].
component_countintegerRequiredNumber of components in the bundle.
componentsarray of objectRequiredThe bundle's components in position order, on every bundle response including list rows. [] only when the bundle has no components.
created_atstringWhen this resource was created, as an RFC3339 timestamp.
delivery_configuration_statusenumRequiredDelivery readiness aggregated across the bundle's components. A bundle with no components reports `not_applicable`.
configuredaction_requirednot_applicable
descriptionstringDescription of the bundle shown to buyers.
external_reference_idstringCaller-owned identifier for this resource in an external system.
imagesarray of objectRequiredImages attached to this resource, in display order. The first image is primary.
is_available_for_salebooleanRequiredWhether 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_idstringIdentifier of the merchant that owns this resource.
metadatamap of stringCaller-owned metadata stored on this resource.
modifier_setobject or nullAttached 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 nullRequiredID of the modifier set attached to the bundle. `null` when no modifier set is attached.
namestringRequiredBundle name shown to buyers.
skustringStock keeping unit assigned to this sellable item.
statusenumRequiredBundle lifecycle status. Archived bundles remain readable and cannot be edited.
activeinactivearchived
unit_price_moneyobjectRequiredPrice charged for one unit, in the currency's smallest unit.
updated_atstringWhen this resource last changed, as an RFC3339 timestamp.
versionintegerRequiredCurrent resource version. Send it as expected_version to reject a write if the resource has changed.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
request_idstringRequiredIdentifier 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#
/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_idstringRequiredFlint 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 enumInclude 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
curl https://api.withflintpay.com/v1/bundles/bun_01KEZF7C00TQ6S76Z6CVQF5SVN \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"The bundle.
{
"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#
/v1/bundles/{bundle_id}IdempotentRequires 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_idstringRequiredFlint 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 nullSend null to clear it.
category_handlesarray of stringRelationship 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 objectReplaces 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.
bundle_component_idstringIdentifier of an existing component to retain. Omit it to add a new component.
delivery_profile_idstring or nullDelivery profile for this component. Omit it to copy the variant's current profile when the component is saved; later changes to the variant's profile don't follow. On update, omitting it on a retained component replaces any override with the variant's current profile, so resend it to keep it. Send null to leave the component without a profile, which makes a physical component `action_required` and a digital or service component `not_applicable` with no delivery requirement. Digital and service components never use defaults; explicit and inherited profiles must be required/manual with allowed_types exactly [digital] or [service], matching the component product type. Existing order delivery snapshots do not change.
positionintegerDisplay order among the bundle's components, starting at zero.
quantityintegerWhole-number quantity; fractional quantities are not supported.
variant_idstringRequiredIdentifier of the product variant included in the bundle.
descriptionstring or nullSend null to clear it.
expected_versionintegerResource version last read by the caller. Required when components or images is present.
external_reference_idstring or nullCaller-owned identifier for this resource in an external system. Send null to clear it.
imagesarray of one ofThe complete desired gallery in display order. The first image is primary. Send [] to clear the gallery.
Send exactly one of these
The `Source URL` variant of `ImageInput`.
altstringAlternative text describing the image for accessibility.
source_referencestringAn opaque reference for this attachment, unique within its gallery. Whitespace and case are preserved.
source_urlstringRequiredA public image URL for Flint to fetch, or an untransformed canonical image.url returned by Flint. Send exactly one of source_url or file_id. Canonical Flint URLs attach without another fetch. Flint doesn't download a source_url again while the image it produced is still in this field.
metadatamap of string or nullCaller-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 nullAttached modifier set. Send null on update to remove it.
namestringBundle 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 nullSend null to clear it.
statusenumWhether the bundle is active or inactive. An inactive bundle cannot be sold.
activeinactive
unit_price_moneyobjectPrice charged for one unit, in the currency's smallest unit.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredThree-letter uppercase ISO 4217 currency code for this amount, such as USD.
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#
/v1/bundles/{bundle_id}IdempotentRequires 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_idstringRequiredFlint 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_versionintegerOptional bundle version last read by the caller.
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#
/v1/bundles/{bundle_id}/componentsRequires 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_idstringRequiredFlint 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_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, 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_idstringFilter by assigned delivery profile ID.
delivery_configuration_statusarray of enumFilter 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.
configuredaction_requirednot_applicable
Response · 200
Successful response.
dataarray of objectRequiredThe requested bundle component data.
bundle_component_idstringRequiredStable identifier of this component within its bundle.
delivery_configuration_reasonenumReason the component's delivery configuration needs attention.
delivery_profile_missingdelivery_profile_inactive
delivery_configuration_statusenumRequiredWhether the component's delivery configuration is ready, needs attention, or does not apply.
configuredaction_requirednot_applicable
delivery_profile_idstringDelivery profile used for this component, including any component override.
positionintegerRequiredDisplay order among the bundle's components, starting at zero.
product_idstringIdentifier of the product the component's variant belongs to.
quantityintegerRequiredWhole-number quantity; fractional quantities are not supported.
variantobjectSummary of the component's variant and its selected options.
variant_idstringRequiredIdentifier of the product variant included in the bundle.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
next_page_tokenstringToken for the next page. Omitted when there are no more results.
request_idstringRequiredIdentifier 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.
{
"data": [],
"meta": {
"api_version": "2026-09-07"
},
"next_page_token": "example",
"request_id": "req_01KWM6BH96R4V5XE6XBWK603S4"
}Was this helpful?