Modifiers
Modifiers let buyers customize a line item at purchase time: size, toppings, add-ons, or free-text input like an engraving message. The model has three layers:
- A modifier group (
mg_) is one buyer-facing prompt with its own rules. Alistgroup offers choices; atextgroup takes free text. - A modifier (
mod_) is one choice in a list group, with an optional price and its own tax settings. - A modifier set (
ms_) puts groups in order, can change their rules for that set only, and attaches to a catalog item.
Set modifier_set_id on a product, a variant, or a bundle to offer the set's groups on that item, or send null to remove it. Each item holds one set. When a buyer makes selections, the order line stores them in modifiers as priced records, so receipts, fulfillment, and refunds read what was sold even after the catalog changes.
Catalog setup builds a café menu with a milk group, an extra-shot group, and a name-on-cup text group, then sells it on an order.
Which set a line uses#
| Line source | Set Flint applies |
|---|---|
bundle_id | The bundle's own set. A bundle doesn't inherit its components' sets. |
variant_id | The variant's set if it has one, and otherwise its product's set. |
| Ad hoc line | None. Ad hoc lines can't carry modifiers. |
Flint copies the set onto the line when the line is added, and checks every later change to that line's selections against the same copy. Editing the catalog afterward doesn't reprice or revalidate lines that already exist.
To render a menu, read items with expand=modifier_set. Product, variant, and bundle reads and lists all accept it, and each item's modifier_set has the same shape as GET /v1/modifier-sets/{modifier_set_id}, with every group and its choices embedded. Reusable and inline groups shows what each entry carries. The expansion needs commerce.catalog.read in addition to the item's own read scope. See Expand related records.
List and text groups#
modifier_group_type decides which rules a group takes. On create, Flint infers text when you send a text object and list otherwise.
| List group | Text group | |
|---|---|---|
| The buyer | Picks choices | Types a value |
| Required when | min_selected is 1 or more | text.required is true |
| Limits | min_selected, max_selected, and quantity rules | text.min_length, text.max_length, text.multiline |
| Price | Each choice's unit_price_delta_money | None |
| Line selection | type: "catalog" | type: "text" |
| Set can override | min_selected, max_selected | required |
min_selected and max_selected count distinct choices. With allow_quantities: true, the buyer can also take several of one choice, within min_quantity and max_quantity per choice and max_total_quantity across the group.
Text min_length and max_length count UTF-8 bytes after trimming whitespace, and max_length is 1 to 500. Non-ASCII characters can use several bytes, so a max_length of 40 can allow fewer than 40 characters. With multiline: false, the value can't contain line breaks.
Rules a group must satisfy#
Flint rejects a group or set whose rules can't be met, with 400 INVALID_REQUEST and param naming the field.
| Area | Rule |
|---|---|
| Choices | An active list group needs at least one active choice, and at least as many active choices as min_selected. Active choices need distinct position values. |
| Selection limits | min_selected can't exceed max_selected. |
| Quantities | min_quantity, max_quantity, and max_total_quantity need allow_quantities: true. min_quantity can't exceed max_quantity, and max_total_quantity must leave room for min_selected choices at min_quantity each. |
| Defaults | default_quantity needs selected_by_default: true, and a value above 1 needs allow_quantities: true. Defaults can't select more choices than max_selected or more units than max_total_quantity. |
| Text | A text group needs a text object and takes no choices, selection limits, or quantity rules. min_length can't exceed max_length. |
| Prices | A choice's price is zero or more. A priced choice must use the currency of the items its set is attached to, and a product's set with priced choices needs all of the product's active variants to share one currency. |
A set checks the same rules again after its overrides: enough available choices to meet the effective min_selected, and no more defaults than the effective max_selected.
Default selections#
When you add a catalog line and leave out modifiers, Flint selects every offered choice marked selected_by_default. Each takes its default_quantity, or the group's min_quantity when quantities are allowed, or 1. Sending modifiers: [] adds the line with no selections and no defaults, and null isn't accepted. Replacing a line's selections later never adds defaults.
Reusable and inline groups#
A set entry's source says who owns its group.
existing | inline | |
|---|---|---|
| Owner | The group itself; any number of sets can use it | The set |
| Create and edit | With the /v1/modifier-groups endpoints | Inside the set's modifier_group, with the set endpoints |
| Read | With the group endpoints | Only through its set |
| Set entry returns | modifier_group_id and the whole group in modifier_group | modifier_group_id and the whole group in modifier_group |
Use existing for a prompt many items share, such as a milk choice on every espresso drink. An edit to a reusable group reaches every set that uses it, advances each set's version and updated_at, and sends modifier_set.updated for each set, including archived sets. Use inline for a prompt that belongs to one item, such as an engraving message. /v1/modifier-groups doesn't list inline groups.
Responses use one entry shape with source: existing or source: inline; create and update requests keep their source-specific fields. The embedded modifier_group matches a group detail read and excludes archived choices, even when the group is archived. Read its name from modifier_group.name, or use the entry's display_name override. A set's version covers its groups as well as its own fields.
An inline group still has a stable modifier_group_id, and its choices have mod_ IDs. Use that group ID for text selections on order lines. After creation, an entry's source can't change and an inline group's modifier_group_type can't change. An existing entry can't reference another set's inline group or an archived group. A set can include a group only once, and entry positions must be unique.
Set overrides#
A set entry can change its group's rules and choices for that set only. Leave an override out to use the group's own value.
| Override on the set entry | Group type | Without it |
|---|---|---|
min_selected | List | The group's min_selected, then 0 |
max_selected | List | The group's max_selected, then no limit |
required | Text | The group's text.required |
display_name | Both | The group's name |
show_on_receipt, show_on_fulfillment | Both | The group's own setting |
Sending required for a list group, or min_selected or max_selected for a text group, returns 400 INVALID_REQUEST with details[0].code: "NOT_ALLOWED" and a param such as modifier_groups[0].required. This applies to inline and existing groups alike.
modifier_overrides change individual choices. Each names a modifier_id from the entry's group, once per entry:
| Choice override | Effect in this set |
|---|---|
available | false takes the choice out of the set. Defaults to true. |
selected_by_default, default_quantity | Replace the choice's defaults. Ignored while the choice is unavailable. |
unit_price_delta_money | Replaces the choice's price. |
taxable, line_item_tax_category | Replace the choice's tax settings. |
A set offers a choice only when the choice's status is active and its override doesn't set available: false. A selection shows on receipts or in fulfillment details only when both its group, after the set's override, and its choice allow it.
This entry makes the shared Milk group required in one set, renames it there, and hides one choice:
{
"source": "existing",
"modifier_group_id": "mg_01KEZF7C00VQB2J7N5CX0VZMNH",
"position": 0,
"display_name": "Choose a milk",
"min_selected": 1,
"modifier_overrides": [
{ "modifier_id": "mod_01KEZF7C00KVK2KCNM80YWT0RF", "available": false }
]
}
Edit with complete lists#
modifiers on a group and modifier_groups on a set are complete lists. A PATCH that includes one replaces the whole list and requires expected_version, the group's or set's version from your last read. Other fields in the same PATCH change only when you send them.
| In the array you send | Result |
|---|---|
An item with its ID (modifier_id or modifier_set_group_id) | Kept, with the fields you send |
| An item without an ID | Created |
| A previous item you leave out | A choice is archived. A set entry is removed, and its inline group is archived. |
[] | Clears the set's entries. A group accepts it only when its rules allow no choices. |
Leave the array out to keep the list as it is; null isn't accepted.
An inline group inside a set entry is a complete definition too. Send its modifier_group_id, every field you want to keep, and every choice with its modifier_id. Fields you leave out take their create defaults, and choices you leave out are archived.
A reusable group can't lose a choice while a set that isn't archived uses the group: removing or archiving one returns 409 RESOURCE_IN_USE. To stop offering it, set the choice's status to inactive, or set available: false in the set's override.
A stale expected_version returns 409 VERSION_CONFLICT with details[0].current_version, including when another write wins while your request runs. Read the group or set again, reapply your change, and retry with the new version.
Add engraving to a product#
Create a set with an inline text group. The buyer must type a message of up to 40 bytes on one line.
curl -X POST https://api.withflintpay.com/v1/modifier-sets \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: modifier-set-engraving" \
-H "Content-Type: application/json" \
-d '{
"name": "Engraving",
"modifier_groups": [
{
"source": "inline",
"position": 0,
"modifier_group": {
"name": "Engraving message",
"modifier_group_type": "text",
"text": { "required": true, "max_length": 40, "multiline": false }
}
}
]
}'
{
"data": {
"modifier_set_id": "ms_01KF6A3B5C7D9E1F3G5H7J9K1M",
"merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
"name": "Engraving",
"status": "active",
"version": 1,
"modifier_groups": [
{
"source": "inline",
"modifier_set_group_id": "msg_01KF6A3B5C8N2P4Q6R8S0T2V4W",
"modifier_group_id": "mg_01KF6A3B5C9X1Y3Z5A7B9C1D3E",
"modifier_group": {
"version": 1,
"modifier_group_id": "mg_01KF6A3B5C9X1Y3Z5A7B9C1D3E",
"merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
"name": "Engraving message",
"modifier_group_type": "text",
"status": "active",
"allow_quantities": false,
"text": { "required": true, "max_length": 40, "multiline": false },
"show_on_receipt": true,
"show_on_fulfillment": true,
"modifiers": [],
"created_at": "2026-10-28T15:04:05Z",
"updated_at": "2026-10-28T15:04:05Z"
},
"position": 0
}
],
"created_at": "2026-10-28T15:04:05Z",
"updated_at": "2026-10-28T15:04:05Z"
},
"request_id": "req_01KF6A3B5D1F3H5K7M9P1R3T5V"
}
Attach the set to the product. Every variant without its own set then offers engraving.
curl -X PATCH https://api.withflintpay.com/v1/products/prod_01KF6A2Z8Y6X4W2V0T8S6R4Q2P \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "modifier_set_id": "ms_01KF6A3B5C7D9E1F3G5H7J9K1M" }'
To allow 60 bytes on several lines, send the entry and its inline group back with their IDs and the set's current version. Because modifier_groups is a complete list, include every entry you want to keep.
curl -X PATCH https://api.withflintpay.com/v1/modifier-sets/ms_01KF6A3B5C7D9E1F3G5H7J9K1M \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"expected_version": 1,
"modifier_groups": [
{
"source": "inline",
"modifier_set_group_id": "msg_01KF6A3B5C8N2P4Q6R8S0T2V4W",
"position": 0,
"modifier_group": {
"modifier_group_id": "mg_01KF6A3B5C9X1Y3Z5A7B9C1D3E",
"name": "Engraving message",
"modifier_group_type": "text",
"text": { "required": true, "max_length": 60, "multiline": true }
}
}
]
}'
Replace a line item's selections#
PATCH /v1/orders/{order_id}/line-items/{order_line_item_id} with modifiers replaces every selection on that line. Send the order's version as expected_version. Each array item names its kind in type:
catalogpicks a list choice bymodifier_id. Addquantitywhen the group allows quantities; it defaults to 1.textsendstext.modifier_group_idandtext.value. Text selections take no quantity.
To keep a selection, include its order_line_item_modifier_id with the same choice or text group. To switch to a different choice, leave the ID out and Flint creates a new selection. Leave a selection out to remove it, or send [] to clear them all. Each choice and each text group can appear once.
curl -X PATCH https://api.withflintpay.com/v1/orders/ord_01KEZF7C00JBKMARG3P06Z224B/line-items/li_01K1P6G4M7H2N8Q9R3S5T6V7WX \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"expected_version": 3,
"modifiers": [
{
"type": "catalog",
"order_line_item_modifier_id": "olim_01KF6B0C2D4E6F8G0H2J4K6M8N",
"modifier_id": "mod_01KEZF7C00T2W4Y6A8C0E2G4J6"
},
{
"type": "catalog",
"modifier_id": "mod_01KEZF7C00Y8B0D2F4H6K8M0P2",
"quantity": 2
},
{
"type": "text",
"text": { "modifier_group_id": "mg_01KEZF7C00Z9C1E3G5J7N9P1Q3", "value": "Sam" }
}
]
}'
The response is the whole order, repriced. Flint checks the selections against the line's copy of its set. A selection the set doesn't offer, or a text value that breaks its group's limits, returns 400 INVALID_REQUEST with param pointing at that selection. A group whose rules the selections don't meet, such as a missing required group or too many choices, returns the same error with param: "modifiers".
Each selection's total_money is its unit_price_delta_money times its quantity times the line's quantity. On two lattes at $5.00 with oat milk at $0.75 and two extra shots at $1.00, the line adds up like this:
- Lattes
base_subtotal_money2 at $5.00$10.00 - Oat milk
modifiers[0].total_money$0.75 × 1 × 2 lattes$1.50 - Extra shot
modifiers[1].total_money$1.00 × 2 × 2 lattes$4.00 - Name on cup
modifiers[2].total_moneyText adds nothing$0.00 - Line subtotal
subtotal_money$15.50
modifier_total_money is the sum of the selections, here $5.50, and subtotal_money is base_subtotal_money plus modifier_total_money.
Selections can't change once payment is collected for the line. During checkout, the checkout credential can replace a line's selections with the same request; see Headless checkout.
Status and archiving#
Groups, sets, and choices share one status vocabulary.
status on modifier groupactiveOffered to buyers. A group is offered only inside an active set, and a choice only inside an active group.inactiveKept but not offered. A set skips an inactive group, even a required one, and an item whose set is inactive offers no modifiers. Setstatusback toactiveto offer it again.archivedFinalRetired withDELETE, or for a choice, by leaving it out of its group'smodifiers. Stays readable by ID so past orders keep their references, and returns from lists only when you filter forstatus=archived. It can't be edited or restored.
DELETE returns the archived group or set exactly as a following GET does. It accepts an optional expected_version query parameter. Repeating it returns the same result without changing version or sending another event. A group can't be archived while a set that isn't archived uses it, and a set can't be archived while an active catalog item holds it. Retire what you no longer sell covers in-use checks across the catalog.
Errors#
- StatusHTTP 400CodeINVALID_
REQUEST What to doA group or set breaks a rule above, a set override doesn't fit its group's type (detailNOT_ALLOWED), a priced choice doesn't match the item's currency (detailNOT_ALLOWED), aPATCHsendsmodifiersormodifier_groupswithoutexpected_version(detailREQUIRED), or a line's selections don't fit its set.paramnames the field. - StatusHTTP 404What to doThe group or set doesn't exist, or an
order_line_item_modifier_idisn't on this line. - StatusHTTP 409CodeRESOURCE_
IN_ USE What to doYou archived a group that a set still uses, a set that an active catalog item holds, or a choice whose group a set uses.details[0].blocking_resourceslists up to 25 of what's in the way, andblocking_resource_countgives the total. - StatusHTTP 409What to doReason
archived: the group or set is archived and can't be edited, or a set entry references an archived group. Reasonpayment_collectedon an order line: payment is already collected, so its selections can't change. - StatusHTTP 409What to do
expected_versiondoesn't match the group, set, or order. Read it again and retry withdetails[0].current_version. - StatusHTTP 409What to doAnother write changed the group or set while a request without
expected_versionran. Retry the same request.
Webhook events#
Groups and sets send events; individual choices don't. Inline groups send no group events either: creating, changing, or removing one sends the modifier_set event for its set. Each payload carries the group or set as its GET returns it; see Catalog events.
- modifier_
group. created A reusable group was created. - modifier_
group. updated A reusable group or its choices changed. - modifier_
group. archived A reusable group was archived. - modifier_
set. created A set was created, with any inline groups. - modifier_
set. updated A set, its entries, or its inline groups changed, or a reusable group it uses changed or was archived. - modifier_
set. archived A set was archived.
Keep another system in sync covers mirroring the catalog and backfilling it from the lists with updated_after.
Related guides#
Catalog setup: add modifiersCreate a reusable group and a set with inline groups, attach it, and sell it on an order.Headless checkoutLet buyers change a line's modifiers during checkout with the checkout credential.Payment linksOffer a catalog item's modifiers on a hosted payment page.The Modifier group object#
A group of choices that customize an item.
Returned by GET /v1/modifier-groups/{modifier_group_id} and carried by the endpoints below.
Attributes
allow_quantitiesbooleanRequiredWhether buyers can select more than one unit of a list modifier.
created_atstringWhen the modifier group was created, as an RFC3339 timestamp.
external_reference_idstringCaller-owned identifier for this resource in an external system.
max_quantityintegerMaximum whole-number quantity for each selected list modifier when allow_quantities is true; fractional quantities are not supported.
max_selectedintegerMaximum number of distinct modifiers buyers can select from a list group. Omit it for no limit. A modifier set can override this value.
max_total_quantityintegerMaximum combined whole-number quantity across selected list modifiers; fractional quantities are not supported.
merchant_idstringIdentifier of the merchant that owns this modifier group.
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.
min_quantityintegerMinimum whole-number quantity for each selected list modifier when allow_quantities is true; fractional quantities are not supported.
min_selectedintegerMinimum number of distinct modifiers buyers must select from a list group. Omit it to require no selections. A modifier set can override this value.
modifier_group_idstringRequiredStable identifier of the modifier group. For a group a modifier set owns (`source: inline`), read it through `GET /v1/modifier-sets/{modifier_set_id}`; `/v1/modifier-groups` doesn't return it.
modifier_group_typeenumRequiredWhether buyers choose from a list of modifiers or enter text. On create, inferred as text when text configuration is supplied, otherwise list.
listtext
modifiersarray of objectRequiredChoices in a list group. Only active modifiers whose set override's available is not false are offered to buyers. Text groups do not have choices.
created_atstringWhen the modifier was created, as an RFC3339 timestamp.
default_quantityintegerWhole-number quantity selected by default. Used only when the choice is available and selected_by_default is true. A modifier set can override this value; fractional quantities are not supported.
line_item_tax_categoryenumFlint line-item tax category.
generalphysical_goodsdigital_goodssoftwaresaasservicesprofessional_servicesfoodprepared_foodclothingmedical_goodsadmission
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_group_idstringIdentifier of the group that owns this modifier. For an inline group, read the group through its modifier set.
modifier_idstringRequiredStable identifier of the modifier. In a replacement request, include it to retain a modifier or omit it to create one.
namestringRequiredName of the choice shown to buyers.
positionintegerRequiredDisplay position of the choice within its group; lower values appear first.
selected_by_defaultbooleanRequiredWhether this choice is selected when the buyer has not supplied selections for the group. A modifier set can override this value; unavailable choices are never selected by default.
show_on_fulfillmentbooleanRequiredWhether this modifier appears in fulfillment details.
show_on_receiptbooleanRequiredWhether this modifier appears on buyer receipts.
statusenumRequiredLifecycle status of the modifier. Only active modifiers can be offered to buyers.
activeinactivearchived
taxablebooleanWhether this modifier's price is taxable. A modifier set can override this value.
unit_price_delta_moneyobjectAmount added to the item's unit price for each unit of this modifier. A modifier set can override this value.
updated_atstringWhen the modifier last changed, as an RFC3339 timestamp.
namestringRequiredName of the modifier group shown to buyers.
show_on_fulfillmentbooleanRequiredWhether selections from this group appear in fulfillment details unless overridden for a modifier set.
show_on_receiptbooleanRequiredWhether selections from this group appear on buyer receipts unless overridden for a modifier set.
statusenumRequiredLifecycle status of the modifier group. Only active groups can be offered to buyers; archived groups remain readable and cannot be edited.
activeinactivearchived
textobjectText entry rules for a text group. Use text.required to require a value; list groups use min_selected instead.
max_lengthintegerMaximum length of the buyer's text in UTF-8 bytes after trimming surrounding whitespace.
min_lengthintegerMinimum length of the buyer's text in UTF-8 bytes after trimming surrounding whitespace.
multilinebooleanRequiredWhether the buyer's text can include line breaks.
requiredbooleanRequiredWhether buyers must enter text for this group. A modifier set's required override takes precedence.
updated_atstringWhen the modifier group or its modifiers last changed, as an RFC3339 timestamp.
versionintegerRequiredVersion of the modifier group and its modifiers.
{
"allow_quantities": false,
"created_at": "2026-03-17T14:30:00Z",
"max_selected": 1,
"merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
"min_selected": 1,
"modifier_group_id": "mg_01KEZF7C00VQB2J7N5CX0VZMNH",
"modifier_group_type": "list",
"modifiers": [
{
"created_at": "2026-03-17T14:30:00Z",
"modifier_group_id": "mg_01KEZF7C00VQB2J7N5CX0VZMNH",
"modifier_id": "mod_01KEZF7C00RCK9WFXB526E74DN",
"name": "Whole milk",
"position": 0,
"selected_by_default": true,
"show_on_fulfillment": true,
"show_on_receipt": true,
"status": "active",
"updated_at": "2026-03-17T14:30:00Z"
},
{
"created_at": "2026-03-17T14:30:00Z",
"modifier_group_id": "mg_01KEZF7C00VQB2J7N5CX0VZMNH",
"modifier_id": "mod_01KEZF7C00KVK2KCNM80YWT0RF",
"name": "Oat milk",
"position": 1,
"selected_by_default": false,
"show_on_fulfillment": true,
"show_on_receipt": true,
"status": "active",
"unit_price_delta_money": {
"amount": 75,
"currency": "USD"
},
"updated_at": "2026-03-17T14:30:00Z"
}
],
"name": "Milk",
"show_on_fulfillment": true,
"show_on_receipt": true,
"status": "active",
"updated_at": "2026-03-17T14:30:00Z",
"version": 1
}The Modifier set object#
A reusable collection of customization groups.
Returned by GET /v1/modifier-sets/{modifier_set_id} and carried by the endpoints below.
Attributes
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.
display_namestringOverrides the group's name for this set. Omit it to use the group's name.
max_selectedintegerOverrides the group's max_selected for this set. Omit it to use the group's value. Accepted only for list groups; if neither value is set, there is no limit.
min_selectedintegerOverrides the group's min_selected for this set. Omit it to use the group's value. Accepted only for list groups; set min_selected: 1 to require a selection. If neither value is set, the minimum is 0.
modifier_groupobjectRequiredFull modifier group for this entry, with the same representation as GET /v1/modifier-groups/{modifier_group_id}. Archived modifiers are excluded for either source, including when the group is archived.
modifier_group_idstringRequiredStable identifier of the group contained in this entry, for either source.
modifier_overridesarray of objectOverrides for individual list modifiers in this set. A choice is offered only when its status is active and its override's available is not false.
modifier_set_group_idstringRequiredStable identifier of this group entry within the set. In a replacement request, include it to retain an entry or omit it to create one.
positionintegerRequiredDisplay position of this group within the set; lower values appear first.
requiredbooleanOverrides the group's text.required for this set. Omit it to use the group's value. Accepted only for text groups; for a list group, set min_selected: 1 to require a selection.
show_on_fulfillmentbooleanOverrides the group's show_on_fulfillment for this set. Omit it to use the group's value.
show_on_receiptbooleanOverrides the group's show_on_receipt for this set. Omit it to use the group's value.
sourceenumRequiredInline groups are owned by this modifier set. Existing groups are independent resources referenced by this set.
existinginline
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.
{
"created_at": "2026-03-17T14:30:00Z",
"merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
"modifier_groups": [
{
"modifier_group": {
"allow_quantities": false,
"created_at": "2026-03-17T14:30:00Z",
"max_selected": 1,
"merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
"min_selected": 1,
"modifier_group_id": "mg_01KEZF7C00VQB2J7N5CX0VZMNH",
"modifier_group_type": "list",
"modifiers": [
{
"created_at": "2026-03-17T14:30:00Z",
"modifier_group_id": "mg_01KEZF7C00VQB2J7N5CX0VZMNH",
"modifier_id": "mod_01KEZF7C00RCK9WFXB526E74DN",
"name": "Whole milk",
"position": 0,
"selected_by_default": true,
"show_on_fulfillment": true,
"show_on_receipt": true,
"status": "active",
"updated_at": "2026-03-17T14:30:00Z"
},
{
"created_at": "2026-03-17T14:30:00Z",
"modifier_group_id": "mg_01KEZF7C00VQB2J7N5CX0VZMNH",
"modifier_id": "mod_01KEZF7C00KVK2KCNM80YWT0RF",
"name": "Oat milk",
"position": 1,
"selected_by_default": false,
"show_on_fulfillment": true,
"show_on_receipt": true,
"status": "active",
"unit_price_delta_money": {
"amount": 75,
"currency": "USD"
},
"updated_at": "2026-03-17T14:30:00Z"
}
],
"name": "Milk",
"show_on_fulfillment": true,
"show_on_receipt": true,
"status": "active",
"updated_at": "2026-03-17T14:30:00Z",
"version": 1
},
"modifier_group_id": "mg_01KEZF7C00VQB2J7N5CX0VZMNH",
"modifier_set_group_id": "msg_01KEZF7C006S7XAMZYR0MN9YDK",
"position": 0,
"source": "existing"
}
],
"modifier_set_id": "ms_01KEZF7C000JEB9XBGMREPS9TG",
"name": "Latte modifiers",
"status": "active",
"updated_at": "2026-03-17T14:30:00Z",
"version": 1
}List modifier groups#
/v1/modifier-groupsRequires scope commerce.catalog.read or commerce.catalog.write
Rate limit: read
List modifier groups. Default order: created_at descending, then modifier_group_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.
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
modifier_group_typearray of enumFilter by modifier group type. 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.
listtext
external_reference_idstringExact-match filter on the caller-owned external reference ID.
querystringSearch across modifier group ID, external reference ID, and name. 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 mg_01.
sort_byenumField to sort by. Defaults to created_at; ties are broken by modifier_group_id.
created_atupdated_at
sort_directionenumSort direction. Defaults to desc.
ascdesc
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.
Response · 200
Successful response.
dataarray of objectRequiredModifier groups matching the request filters for this page.
allow_quantitiesbooleanRequiredWhether buyers can select more than one unit of a list modifier.
created_atstringWhen the modifier group was created, as an RFC3339 timestamp.
external_reference_idstringCaller-owned identifier for this resource in an external system.
max_quantityintegerMaximum whole-number quantity for each selected list modifier when allow_quantities is true; fractional quantities are not supported.
max_selectedintegerMaximum number of distinct modifiers buyers can select from a list group. Omit it for no limit. A modifier set can override this value.
max_total_quantityintegerMaximum combined whole-number quantity across selected list modifiers; fractional quantities are not supported.
merchant_idstringIdentifier of the merchant that owns this modifier group.
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.
min_quantityintegerMinimum whole-number quantity for each selected list modifier when allow_quantities is true; fractional quantities are not supported.
min_selectedintegerMinimum number of distinct modifiers buyers must select from a list group. Omit it to require no selections. A modifier set can override this value.
modifier_group_idstringRequiredStable identifier of the modifier group. For a group a modifier set owns (`source: inline`), read it through `GET /v1/modifier-sets/{modifier_set_id}`; `/v1/modifier-groups` doesn't return it.
modifier_group_typeenumRequiredWhether buyers choose from a list of modifiers or enter text. On create, inferred as text when text configuration is supplied, otherwise list.
listtext
modifiersarray of objectRequiredChoices in a list group. Only active modifiers whose set override's available is not false are offered to buyers. Text groups do not have choices.
namestringRequiredName of the modifier group shown to buyers.
show_on_fulfillmentbooleanRequiredWhether selections from this group appear in fulfillment details unless overridden for a modifier set.
show_on_receiptbooleanRequiredWhether selections from this group appear on buyer receipts unless overridden for a modifier set.
statusenumRequiredLifecycle status of the modifier group. Only active groups can be offered to buyers; archived groups remain readable and cannot be edited.
activeinactivearchived
textobjectText entry rules for a text group. Use text.required to require a value; list groups use min_selected instead.
updated_atstringWhen the modifier group or its modifiers last changed, as an RFC3339 timestamp.
versionintegerRequiredVersion of the modifier group and its modifiers.
metaobjectResponse metadata, including API version, trace identifier, and warnings when present.
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_tokenstringPass this token as page_token to read the next page with the same filters. Absent when there are no more results.
request_idstringRequiredIdentifier of this API request, useful when contacting Flint support.
curl https://api.withflintpay.com/v1/modifier-groups \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Successful response.
{
"data": [
{
"allow_quantities": false,
"created_at": "2026-03-17T14:30:00Z",
"max_selected": 1,
"merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
"min_selected": 1,
"modifier_group_id": "mg_01KEZF7C00VQB2J7N5CX0VZMNH",
"modifier_group_type": "list",
"modifiers": [
{
"created_at": "2026-03-17T14:30:00Z",
"modifier_group_id": "mg_01KEZF7C00VQB2J7N5CX0VZMNH",
"modifier_id": "mod_01KEZF7C00RCK9WFXB526E74DN",
"name": "Whole milk",
"position": 0,
"selected_by_default": true,
"show_on_fulfillment": true,
"show_on_receipt": true,
"status": "active",
"updated_at": "2026-03-17T14:30:00Z"
},
{
"created_at": "2026-03-17T14:30:00Z",
"modifier_group_id": "mg_01KEZF7C00VQB2J7N5CX0VZMNH",
"modifier_id": "mod_01KEZF7C00KVK2KCNM80YWT0RF",
"name": "Oat milk",
"position": 1,
"selected_by_default": false,
"show_on_fulfillment": true,
"show_on_receipt": true,
"status": "active",
"unit_price_delta_money": {
"amount": 75,
"currency": "USD"
},
"updated_at": "2026-03-17T14:30:00Z"
}
],
"name": "Milk",
"show_on_fulfillment": true,
"show_on_receipt": true,
"status": "active",
"updated_at": "2026-03-17T14:30:00Z",
"version": 1
}
],
"meta": {
"api_version": "2026-09-07"
},
"next_page_token": "example",
"request_id": "req_01KWM6F4VHPBV1BWKSJJNBRHDT"
}Create modifier group#
/v1/modifier-groupsIdempotentRequires scope commerce.catalog.write
Rate limit: write
Creates a modifier group, a set of choices that customize an item, such as toppings or a custom message. Send `name`. A list group offers the choices in `modifiers`, with limits on how many buyers select; a text group takes a text entry instead, and sending `text` makes the group a text group. Attach groups to products, variants, and bundles through a modifier set. Defaults must stay within the group's selection limits.
Request body
allow_quantitiesbooleanWhether buyers can select more than one unit of a list modifier.
external_reference_idstringCaller-owned identifier for this resource in an external system.
max_quantityintegerMaximum whole-number quantity for each selected list modifier when allow_quantities is true; fractional quantities are not supported.
max_selectedintegerMaximum number of distinct modifiers buyers can select from a list group. Omit it for no limit. A modifier set can override this value.
max_total_quantityintegerMaximum combined whole-number quantity across selected list modifiers; fractional quantities are not supported.
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.
min_quantityintegerMinimum whole-number quantity for each selected list modifier when allow_quantities is true; fractional quantities are not supported.
min_selectedintegerMinimum number of distinct modifiers buyers must select from a list group. Omit it to require no selections. A modifier set can override this value.
modifier_group_typeenumWhether buyers choose from a list of modifiers or enter text. On create, inferred as text when text configuration is supplied, otherwise list.
listtext
modifiersarray of objectChoices in a list group. Only active modifiers whose set override's available is not false are offered to buyers. Text groups do not have choices.
default_quantityintegerWhole-number quantity selected by default. Used only when the choice is available and selected_by_default is true. A modifier set can override this value; fractional quantities are not supported.
line_item_tax_categoryenumFlint line-item tax category.
generalphysical_goodsdigital_goodssoftwaresaasservicesprofessional_servicesfoodprepared_foodclothingmedical_goodsadmission
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.
namestringRequiredName of the choice shown to buyers. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
positionintegerDisplay position of the choice within its group; lower values appear first.
selected_by_defaultbooleanWhether this choice is selected when the buyer has not supplied selections for the group. A modifier set can override this value; unavailable choices are never selected by default.
show_on_fulfillmentbooleanWhether this modifier appears in fulfillment details.
show_on_receiptbooleanWhether this modifier appears on buyer receipts.
statusenumLifecycle status of the modifier. Only active modifiers can be offered to buyers.
activeinactive
taxablebooleanWhether this modifier's price is taxable. A modifier set can override this value.
unit_price_delta_moneyobjectAmount added to the item's unit price for each unit of this modifier. A modifier set can override this value.
namestringRequiredName of the modifier group shown to buyers. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
show_on_fulfillmentbooleanWhether selections from this group appear in fulfillment details unless overridden for a modifier set.
show_on_receiptbooleanWhether selections from this group appear on buyer receipts unless overridden for a modifier set.
statusenumLifecycle status of the modifier group. Only active groups can be offered to buyers; archived groups remain readable and cannot be edited.
activeinactive
textobjectText entry rules for a text group. Use text.required to require a value; list groups use min_selected instead.
max_lengthintegerMaximum length of the buyer's text in UTF-8 bytes after trimming surrounding whitespace, from 1 to 500.
min_lengthintegerMinimum length of the buyer's text in UTF-8 bytes after trimming surrounding whitespace. Must be 0 or more, and no more than `max_length`.
multilinebooleanWhether the buyer's text can include line breaks.
requiredbooleanWhether buyers must enter text for this group. A modifier set's required override takes precedence.
Response · 201
Successful response.
dataobjectRequiredThe modifier group returned by this operation.
allow_quantitiesbooleanRequiredWhether buyers can select more than one unit of a list modifier.
created_atstringWhen the modifier group was created, as an RFC3339 timestamp.
external_reference_idstringCaller-owned identifier for this resource in an external system.
max_quantityintegerMaximum whole-number quantity for each selected list modifier when allow_quantities is true; fractional quantities are not supported.
max_selectedintegerMaximum number of distinct modifiers buyers can select from a list group. Omit it for no limit. A modifier set can override this value.
max_total_quantityintegerMaximum combined whole-number quantity across selected list modifiers; fractional quantities are not supported.
merchant_idstringIdentifier of the merchant that owns this modifier group.
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.
min_quantityintegerMinimum whole-number quantity for each selected list modifier when allow_quantities is true; fractional quantities are not supported.
min_selectedintegerMinimum number of distinct modifiers buyers must select from a list group. Omit it to require no selections. A modifier set can override this value.
modifier_group_idstringRequiredStable identifier of the modifier group. For a group a modifier set owns (`source: inline`), read it through `GET /v1/modifier-sets/{modifier_set_id}`; `/v1/modifier-groups` doesn't return it.
modifier_group_typeenumRequiredWhether buyers choose from a list of modifiers or enter text. On create, inferred as text when text configuration is supplied, otherwise list.
listtext
modifiersarray of objectRequiredChoices in a list group. Only active modifiers whose set override's available is not false are offered to buyers. Text groups do not have choices.
namestringRequiredName of the modifier group shown to buyers.
show_on_fulfillmentbooleanRequiredWhether selections from this group appear in fulfillment details unless overridden for a modifier set.
show_on_receiptbooleanRequiredWhether selections from this group appear on buyer receipts unless overridden for a modifier set.
statusenumRequiredLifecycle status of the modifier group. Only active groups can be offered to buyers; archived groups remain readable and cannot be edited.
activeinactivearchived
textobjectText entry rules for a text group. Use text.required to require a value; list groups use min_selected instead.
updated_atstringWhen the modifier group or its modifiers last changed, as an RFC3339 timestamp.
versionintegerRequiredVersion of the modifier group and its modifiers.
metaobjectResponse metadata, including API version, trace identifier, and warnings when present.
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 Flint support.
curl -X POST https://api.withflintpay.com/v1/modifier-groups \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"name": "Milk choice"
}'Get modifier group#
/v1/modifier-groups/{modifier_group_id}Requires scope commerce.catalog.read or commerce.catalog.write
Rate limit: read
Returns one modifier group by ID, with its choices, selection limits, and whether it appears on receipts and in fulfillment details.
Path parameters
modifier_group_idstringRequiredFlint modifier group ID. Must be a valid ID with prefix mg_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
curl https://api.withflintpay.com/v1/modifier-groups/mg_01KEZF7C00XKJJATARG7KDBYM9 \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Successful response.
{
"data": {
"allow_quantities": false,
"created_at": "2026-03-17T14:30:00Z",
"max_selected": 1,
"merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
"min_selected": 1,
"modifier_group_id": "mg_01KEZF7C00VQB2J7N5CX0VZMNH",
"modifier_group_type": "list",
"modifiers": [
{
"created_at": "2026-03-17T14:30:00Z",
"modifier_group_id": "mg_01KEZF7C00VQB2J7N5CX0VZMNH",
"modifier_id": "mod_01KEZF7C00RCK9WFXB526E74DN",
"name": "Whole milk",
"position": 0,
"selected_by_default": true,
"show_on_fulfillment": true,
"show_on_receipt": true,
"status": "active",
"updated_at": "2026-03-17T14:30:00Z"
},
{
"created_at": "2026-03-17T14:30:00Z",
"modifier_group_id": "mg_01KEZF7C00VQB2J7N5CX0VZMNH",
"modifier_id": "mod_01KEZF7C00KVK2KCNM80YWT0RF",
"name": "Oat milk",
"position": 1,
"selected_by_default": false,
"show_on_fulfillment": true,
"show_on_receipt": true,
"status": "active",
"unit_price_delta_money": {
"amount": 75,
"currency": "USD"
},
"updated_at": "2026-03-17T14:30:00Z"
}
],
"name": "Milk",
"show_on_fulfillment": true,
"show_on_receipt": true,
"status": "active",
"updated_at": "2026-03-17T14:30:00Z",
"version": 1
},
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM6A1T82V2KVXF1AJYDPNBH"
}Update modifier group#
/v1/modifier-groups/{modifier_group_id}IdempotentRequires scope commerce.catalog.write
Rate limit: write
Applies a sparse update to a modifier group: only the fields you send change. Sending `modifiers` replaces the whole list; modifiers you leave out are archived, and `expected_version` is required with it. A stale version fails with `VERSION_CONFLICT`. 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
modifier_group_idstringRequiredFlint modifier group ID. Must be a valid ID with prefix mg_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
allow_quantitiesbooleanWhether buyers can select more than one unit of a list modifier.
expected_versionintegerModifier group version last read by the caller. Required when modifiers is present.
external_reference_idstring or nullCaller-owned identifier for this resource in an external system. Send null to clear it.
max_quantityinteger or nullMaximum whole-number quantity for each selected list modifier. Omit it to keep the current value; send null to clear it. Fractional quantities are not supported.
max_selectedinteger or nullMaximum number of distinct list modifiers buyers can select. Omit it to keep the current value; send null to remove the limit.
max_total_quantityinteger or nullMaximum combined whole-number quantity across selected list modifiers. Omit it to keep the current value; send null to clear it. Fractional quantities are not supported.
metadatamap of string or nullOmitted metadata is unchanged. Objects merge by key, null values delete keys, an empty object is a no-op, and null clears all metadata. The merged map can contain at most 50 keys. 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.
min_quantityinteger or nullMinimum whole-number quantity for each selected list modifier. Omit it to keep the current value; send null to clear it. Fractional quantities are not supported.
min_selectedinteger or nullMinimum number of distinct list modifiers buyers must select. Omit it to keep the current value; send null to remove the minimum.
modifiersarray of objectReplaces all modifiers atomically. Include modifier_id to retain an existing modifier, omit the ID to create one, and omit a previous modifier to archive it. Omit the array to leave modifiers unchanged. An empty array clears modifiers when the group rules permit it. Null is not accepted.
default_quantityintegerWhole-number quantity selected by default. Used only when the choice is available and selected_by_default is true. A modifier set can override this value; fractional quantities are not supported.
line_item_tax_categoryenumFlint line-item tax category.
generalphysical_goodsdigital_goodssoftwaresaasservicesprofessional_servicesfoodprepared_foodclothingmedical_goodsadmission
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_idstringStable identifier of the modifier. In a replacement request, include it to retain a modifier or omit it to create one.
namestringRequiredName of the choice shown to buyers. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
positionintegerDisplay position of the choice within its group; lower values appear first.
selected_by_defaultbooleanWhether this choice is selected when the buyer has not supplied selections for the group. A modifier set can override this value; unavailable choices are never selected by default.
show_on_fulfillmentbooleanWhether this modifier appears in fulfillment details.
show_on_receiptbooleanWhether this modifier appears on buyer receipts.
statusenumLifecycle status of the modifier. Only active modifiers can be offered to buyers.
activeinactive
taxablebooleanWhether this modifier's price is taxable. A modifier set can override this value.
unit_price_delta_moneyobjectAmount added to the item's unit price for each unit of this modifier. A modifier set can override this value.
namestringName of the modifier group shown to buyers. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
show_on_fulfillmentbooleanWhether selections from this group appear in fulfillment details unless overridden for a modifier set.
show_on_receiptbooleanWhether selections from this group appear on buyer receipts unless overridden for a modifier set.
statusenumLifecycle status of the modifier group. Only active groups can be offered to buyers; archived groups remain readable and cannot be edited.
activeinactive
textobject or nullPatch text entry rules by field. Omitted fields keep their current values; null clears the text configuration when the group rules permit it. An empty object is invalid.
max_lengthinteger or nullMaximum length of the buyer's text in UTF-8 bytes after trimming surrounding whitespace. Omit it to keep the current limit; send null to clear it.
min_lengthinteger or nullMinimum length of the buyer's text in UTF-8 bytes after trimming surrounding whitespace. Omit it to keep the current minimum; send null to clear it.
multilinebooleanWhether the buyer's text can include line breaks.
requiredbooleanWhether buyers must enter text for this group. A modifier set's required override takes precedence.
curl -X PATCH https://api.withflintpay.com/v1/modifier-groups/mg_01KEZF7C00XKJJATARG7KDBYM9 \
-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": "Milk choice"
}'Retire modifier group#
/v1/modifier-groups/{modifier_group_id}IdempotentRequires scope commerce.catalog.write
Rate limit: write
Archives a modifier group so buyers are no longer offered it, and returns its final state. A group that a modifier set which isn't archived still uses fails with `RESOURCE_IN_USE`; remove it from those sets, or archive them, first. 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
modifier_group_idstringRequiredFlint modifier group ID. Must be a valid ID with prefix mg_. 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 modifier group version last read by the caller.
curl -X DELETE https://api.withflintpay.com/v1/modifier-groups/mg_01KEZF7C00XKJJATARG7KDBYM9 \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"List modifier sets#
/v1/modifier-setsRequires scope commerce.catalog.read or commerce.catalog.write
Rate limit: read
List modifier sets. Default order: created_at descending, then modifier_set_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.
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
external_reference_idstringExact-match filter on the caller-owned external reference ID.
querystringSearch across modifier set ID, external reference ID, and name. 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 ms_01.
sort_byenumField to sort by. Defaults to created_at; ties are broken by modifier_set_id.
created_atupdated_at
sort_directionenumSort direction. Defaults to desc.
ascdesc
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.
Response · 200
Successful response.
dataarray of objectRequiredModifier sets matching the request filters for this page.
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.
metaobjectResponse metadata, including API version, trace identifier, and warnings when present.
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_tokenstringPass this token as page_token to read the next page with the same filters. Absent when there are no more results.
request_idstringRequiredIdentifier of this API request, useful when contacting Flint support.
curl https://api.withflintpay.com/v1/modifier-sets \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Successful response.
{
"data": [
{
"created_at": "2026-03-17T14:30:00Z",
"merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
"modifier_groups": [
{
"modifier_group": {
"allow_quantities": false,
"created_at": "2026-03-17T14:30:00Z",
"max_selected": 1,
"merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
"min_selected": 1,
"modifier_group_id": "mg_01KEZF7C00VQB2J7N5CX0VZMNH",
"modifier_group_type": "list",
"modifiers": [
{
"created_at": "2026-03-17T14:30:00Z",
"modifier_group_id": "mg_01KEZF7C00VQB2J7N5CX0VZMNH",
"modifier_id": "mod_01KEZF7C00RCK9WFXB526E74DN",
"name": "Whole milk",
"position": 0,
"selected_by_default": true,
"show_on_fulfillment": true,
"show_on_receipt": true,
"status": "active",
"updated_at": "2026-03-17T14:30:00Z"
},
{
"created_at": "2026-03-17T14:30:00Z",
"modifier_group_id": "mg_01KEZF7C00VQB2J7N5CX0VZMNH",
"modifier_id": "mod_01KEZF7C00KVK2KCNM80YWT0RF",
"name": "Oat milk",
"position": 1,
"selected_by_default": false,
"show_on_fulfillment": true,
"show_on_receipt": true,
"status": "active",
"unit_price_delta_money": {
"amount": 75,
"currency": "USD"
},
"updated_at": "2026-03-17T14:30:00Z"
}
],
"name": "Milk",
"show_on_fulfillment": true,
"show_on_receipt": true,
"status": "active",
"updated_at": "2026-03-17T14:30:00Z",
"version": 1
},
"modifier_group_id": "mg_01KEZF7C00VQB2J7N5CX0VZMNH",
"modifier_set_group_id": "msg_01KEZF7C006S7XAMZYR0MN9YDK",
"position": 0,
"source": "existing"
}
],
"modifier_set_id": "ms_01KEZF7C000JEB9XBGMREPS9TG",
"name": "Latte modifiers",
"status": "active",
"updated_at": "2026-03-17T14:30:00Z",
"version": 1
}
],
"meta": {
"api_version": "2026-09-07"
},
"next_page_token": "example",
"request_id": "req_01KWM6VAFQNT4479SCC7EZAP92"
}Create modifier set#
/v1/modifier-setsIdempotentRequires scope commerce.catalog.write
Rate limit: write
Creates a modifier set, a reusable collection of modifier groups that you attach to products, variants, and bundles by `modifier_set_id`. Send `name` and the ordered `modifier_groups`, each referencing a reusable group or defining a group owned by the set.
Request body
external_reference_idstringCaller-owned identifier for this resource in an external system.
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 one ofOrdered group entries in this set, including references to reusable groups and groups owned by the set.
Send exactly one of these
The `existing` variant of `CreateModifierSetGroupInput`.
display_namestringOverrides the group's name for this set. Omit it to use the group's name.
max_selectedintegerOverrides the group's max_selected for this set. Omit it to use the group's value. Accepted only for list groups; if neither value is set, there is no limit.
min_selectedintegerOverrides the group's min_selected for this set. Omit it to use the group's value. Accepted only for list groups; set min_selected: 1 to require a selection. If neither value is set, the minimum is 0.
modifier_group_idstringRequiredIdentifier of the independent modifier group referenced when source is existing.
modifier_overridesarray of objectOverrides for individual list modifiers in this set. A choice is offered only when its status is active and its override's available is not false.
positionintegerDisplay position of this group within the set; lower values appear first.
requiredbooleanOverrides the group's text.required for this set. Omit it to use the group's value. Accepted only for text groups; for a list group, set min_selected: 1 to require a selection.
show_on_fulfillmentbooleanOverrides the group's show_on_fulfillment for this set. Omit it to use the group's value.
show_on_receiptbooleanOverrides the group's show_on_receipt for this set. Omit it to use the group's value.
sourceenumRequiredUse inline for a modifier group owned by this modifier set, or existing to reference an independent modifier group.
existing
namestringRequiredName used to identify this modifier set. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
statusenumLifecycle status of the modifier set. Only active sets can be offered to buyers; archived sets remain readable and cannot be edited.
activeinactive
Response · 201
Successful response.
dataobjectRequiredThe modifier set returned by this operation.
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.
metaobjectResponse metadata, including API version, trace identifier, and warnings when present.
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 Flint support.
curl -X POST https://api.withflintpay.com/v1/modifier-sets \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: a-unique-key" \
-d '{
"name": "Coffee options"
}'Get modifier set#
/v1/modifier-sets/{modifier_set_id}Requires scope commerce.catalog.read or commerce.catalog.write
Rate limit: read
Returns one modifier set by ID, with its ordered modifier groups.
Path parameters
modifier_set_idstringRequiredFlint modifier set ID. Must be a valid ID with prefix ms_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
curl https://api.withflintpay.com/v1/modifier-sets/ms_01KEZF7C007EWZVVFAWVJJM8NR \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Successful response.
{
"data": {
"created_at": "2026-03-17T14:30:00Z",
"merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
"modifier_groups": [
{
"modifier_group": {
"allow_quantities": false,
"created_at": "2026-03-17T14:30:00Z",
"max_selected": 1,
"merchant_id": "mer_01KEZF7C00MPP0T9S0KH5BB4CC",
"min_selected": 1,
"modifier_group_id": "mg_01KEZF7C00VQB2J7N5CX0VZMNH",
"modifier_group_type": "list",
"modifiers": [
{
"created_at": "2026-03-17T14:30:00Z",
"modifier_group_id": "mg_01KEZF7C00VQB2J7N5CX0VZMNH",
"modifier_id": "mod_01KEZF7C00RCK9WFXB526E74DN",
"name": "Whole milk",
"position": 0,
"selected_by_default": true,
"show_on_fulfillment": true,
"show_on_receipt": true,
"status": "active",
"updated_at": "2026-03-17T14:30:00Z"
},
{
"created_at": "2026-03-17T14:30:00Z",
"modifier_group_id": "mg_01KEZF7C00VQB2J7N5CX0VZMNH",
"modifier_id": "mod_01KEZF7C00KVK2KCNM80YWT0RF",
"name": "Oat milk",
"position": 1,
"selected_by_default": false,
"show_on_fulfillment": true,
"show_on_receipt": true,
"status": "active",
"unit_price_delta_money": {
"amount": 75,
"currency": "USD"
},
"updated_at": "2026-03-17T14:30:00Z"
}
],
"name": "Milk",
"show_on_fulfillment": true,
"show_on_receipt": true,
"status": "active",
"updated_at": "2026-03-17T14:30:00Z",
"version": 1
},
"modifier_group_id": "mg_01KEZF7C00VQB2J7N5CX0VZMNH",
"modifier_set_group_id": "msg_01KEZF7C006S7XAMZYR0MN9YDK",
"position": 0,
"source": "existing"
}
],
"modifier_set_id": "ms_01KEZF7C000JEB9XBGMREPS9TG",
"name": "Latte modifiers",
"status": "active",
"updated_at": "2026-03-17T14:30:00Z",
"version": 1
},
"meta": {
"api_version": "2026-09-07"
},
"request_id": "req_01KWM61QJYSM4DWF0W9ES4GMAC"
}Update modifier set#
/v1/modifier-sets/{modifier_set_id}IdempotentRequires scope commerce.catalog.write
Rate limit: write
Applies a sparse update to a modifier set: only the fields you send change. Sending `modifier_groups` replaces the set's group entries; entries you leave out are removed, and `expected_version` is required with it. A stale version fails with `VERSION_CONFLICT`. 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
modifier_set_idstringRequiredFlint modifier set ID. Must be a valid ID with prefix ms_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
expected_versionintegerModifier set version last read by the caller. Required when modifier_groups is present.
external_reference_idstring or nullCaller-owned identifier for this resource in an external system. Send null to clear it.
metadatamap of string or nullOmitted metadata is unchanged. Objects merge by key, null values delete keys, an empty object is a no-op, and null clears all metadata. The merged map can contain at most 50 keys. 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_groupsarray of one ofReplaces the set's group entries atomically. Include modifier_set_group_id to retain an entry or omit it to create one. Entries omitted from the array are removed. Omit the array to leave entries unchanged; send [] to clear them.
Send exactly one of these
The `existing` variant of `ModifierSetGroupInput`.
display_namestringOverrides the group's name for this set. Omit it to use the group's name.
max_selectedintegerOverrides the group's max_selected for this set. Omit it to use the group's value. Accepted only for list groups; if neither value is set, there is no limit.
min_selectedintegerOverrides the group's min_selected for this set. Omit it to use the group's value. Accepted only for list groups; set min_selected: 1 to require a selection. If neither value is set, the minimum is 0.
modifier_group_idstringRequiredIdentifier of the independent modifier group referenced when source is existing.
modifier_overridesarray of objectOverrides for individual list modifiers in this set. A choice is offered only when its status is active and its override's available is not false.
modifier_set_group_idstringStable identifier of this group entry within the set. In a replacement request, include it to retain an entry or omit it to create one.
positionintegerDisplay position of this group within the set; lower values appear first.
requiredbooleanOverrides the group's text.required for this set. Omit it to use the group's value. Accepted only for text groups; for a list group, set min_selected: 1 to require a selection.
show_on_fulfillmentbooleanOverrides the group's show_on_fulfillment for this set. Omit it to use the group's value.
show_on_receiptbooleanOverrides the group's show_on_receipt for this set. Omit it to use the group's value.
sourceenumRequiredUse inline for a modifier group owned by this modifier set, or existing to reference an independent modifier group.
existing
namestringName used to identify this modifier set. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
statusenumLifecycle status of the modifier set. Only active sets can be offered to buyers; archived sets remain readable and cannot be edited.
activeinactive
curl -X PATCH https://api.withflintpay.com/v1/modifier-sets/ms_01KEZF7C007EWZVVFAWVJJM8NR \
-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": "Coffee options"
}'Retire modifier set#
/v1/modifier-sets/{modifier_set_id}IdempotentRequires scope commerce.catalog.write
Rate limit: write
Archives a modifier set and returns its final state. A set that is still attached to a product, variant, or bundle fails with `RESOURCE_IN_USE`; set `modifier_set_id` to `null` on each of them first. 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
modifier_set_idstringRequiredFlint modifier set ID. Must be a valid ID with prefix ms_. 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 modifier set version last read by the caller.
curl -X DELETE https://api.withflintpay.com/v1/modifier-sets/ms_01KEZF7C007EWZVVFAWVJJM8NR \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"Was this helpful?