Skip to content

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. A list group offers choices; a text group 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 sourceSet Flint applies
bundle_idThe bundle's own set. A bundle doesn't inherit its components' sets.
variant_idThe variant's set if it has one, and otherwise its product's set.
Ad hoc lineNone. 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 groupText group
The buyerPicks choicesTypes a value
Required whenmin_selected is 1 or moretext.required is true
Limitsmin_selected, max_selected, and quantity rulestext.min_length, text.max_length, text.multiline
PriceEach choice's unit_price_delta_moneyNone
Line selectiontype: "catalog"type: "text"
Set can overridemin_selected, max_selectedrequired

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.

AreaRule
ChoicesAn 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 limitsmin_selected can't exceed max_selected.
Quantitiesmin_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.
Defaultsdefault_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.
TextA text group needs a text object and takes no choices, selection limits, or quantity rules. min_length can't exceed max_length.
PricesA 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.

existinginline
OwnerThe group itself; any number of sets can use itThe set
Create and editWith the /v1/modifier-groups endpointsInside the set's modifier_group, with the set endpoints
ReadWith the group endpointsOnly through its set
Set entry returnsmodifier_group_id and the whole group in modifier_groupmodifier_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 entryGroup typeWithout it
min_selectedListThe group's min_selected, then 0
max_selectedListThe group's max_selected, then no limit
requiredTextThe group's text.required
display_nameBothThe group's name
show_on_receipt, show_on_fulfillmentBothThe 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 overrideEffect in this set
availablefalse takes the choice out of the set. Defaults to true.
selected_by_default, default_quantityReplace the choice's defaults. Ignored while the choice is unavailable.
unit_price_delta_moneyReplaces the choice's price.
taxable, line_item_tax_categoryReplace 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:

JSON
{
  "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 sendResult
An item with its ID (modifier_id or modifier_set_group_id)Kept, with the fields you send
An item without an IDCreated
A previous item you leave outA 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
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 }
        }
      }
    ]
  }'
Response
{
  "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
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
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:

  • catalog picks a list choice by modifier_id. Add quantity when the group allows quantities; it defaults to 1.
  • text sends text.modifier_group_id and text.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
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:

Two lattes with oat milk and two extra shots
  • Lattesbase_subtotal_money
    2 at $5.00
    $10.00
  • Oat milkmodifiers[0].total_money
    $0.75 × 1 × 2 lattes
    $1.50
  • Extra shotmodifiers[1].total_money
    $1.00 × 2 × 2 lattes
    $4.00
  • Name on cupmodifiers[2].total_money
    Text adds nothing
    $0.00
  • Line subtotalsubtotal_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 group
Final values do not change again
  • active
    Offered to buyers. A group is offered only inside an active set, and a choice only inside an active group.
  • inactive
    Kept but not offered. A set skips an inactive group, even a required one, and an item whose set is inactive offers no modifiers. Set status back to active to offer it again.
  • archivedFinal
    Retired with DELETE, or for a choice, by leaving it out of its group's modifiers. Stays readable by ID so past orders keep their references, and returns from lists only when you filter for status=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#

  • HTTP 400
    A group or set breaks a rule above, a set override doesn't fit its group's type (detail NOT_ALLOWED), a priced choice doesn't match the item's currency (detail NOT_ALLOWED), a PATCH sends modifiers or modifier_groups without expected_version (detail REQUIRED), or a line's selections don't fit its set. param names the field.
  • HTTP 404
    The group or set doesn't exist, or an order_line_item_modifier_id isn't on this line.
  • HTTP 409
    You 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_resources lists up to 25 of what's in the way, and blocking_resource_count gives the total.
  • HTTP 409
    Reason archived: the group or set is archived and can't be edited, or a set entry references an archived group. Reason payment_collected on an order line: payment is already collected, so its selections can't change.
  • HTTP 409
    VERSION_CONFLICTRefresh, then retry
    expected_version doesn't match the group, set, or order. Read it again and retry with details[0].current_version.
  • HTTP 409
    CONCURRENT_MODIFICATIONRetry the same request
    Another write changed the group or set while a request without expected_version ran. 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.

Keep another system in sync covers mirroring the catalog and backfilling it from the lists with updated_after.

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_quantitiesbooleanRequired

Whether buyers can select more than one unit of a list modifier.

created_atstring

When the modifier group was created, as an RFC3339 timestamp.

external_reference_idstring

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

max_quantityinteger

Maximum whole-number quantity for each selected list modifier when allow_quantities is true; fractional quantities are not supported.

max_selectedinteger

Maximum 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_quantityinteger

Maximum combined whole-number quantity across selected list modifiers; fractional quantities are not supported.

merchant_idstring

Identifier of the merchant that owns this modifier group.

metadatamap of string

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

min_quantityinteger

Minimum whole-number quantity for each selected list modifier when allow_quantities is true; fractional quantities are not supported.

min_selectedinteger

Minimum 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_idstringRequired

Stable 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_typeenumRequired

Whether buyers choose from a list of modifiers or enter text. On create, inferred as text when text configuration is supplied, otherwise list.

  • list
  • text
modifiersarray of objectRequired

Choices 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.

namestringRequired

Name of the modifier group shown to buyers.

show_on_fulfillmentbooleanRequired

Whether selections from this group appear in fulfillment details unless overridden for a modifier set.

show_on_receiptbooleanRequired

Whether selections from this group appear on buyer receipts unless overridden for a modifier set.

statusenumRequired

Lifecycle status of the modifier group. Only active groups can be offered to buyers; archived groups remain readable and cannot be edited.

  • active
  • inactive
  • archived
textobject

Text entry rules for a text group. Use text.required to require a value; list groups use min_selected instead.

updated_atstring

When the modifier group or its modifiers last changed, as an RFC3339 timestamp.

versionintegerRequired

Version of the modifier group and its modifiers.

JSON
{
  "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_atstring

When the modifier set was created, as an RFC3339 timestamp.

external_reference_idstring

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

merchant_idstring

Identifier of the merchant that owns this modifier set.

metadatamap of string

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

modifier_groupsarray of objectRequired

Ordered group entries in this set, including the full content of reusable groups and groups owned by the set.

modifier_set_idstringRequired

Stable identifier of the modifier set assigned to catalog items.

namestringRequired

Name used to identify this modifier set.

statusenumRequired

Lifecycle status of the modifier set. Only active sets can be offered to buyers; archived sets remain readable and cannot be edited.

  • active
  • inactive
  • archived
updated_atstring

When the modifier set or any group it contains last changed, as an RFC3339 timestamp.

versionintegerRequired

Version of the modifier set, including the groups it contains.

JSON
{
  "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#

GET/v1/modifier-groups

Requires 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_sizeinteger

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

page_tokenstring

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

statusarray of enum

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

  • active
  • inactive
  • archived
modifier_group_typearray of enum

Filter 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.

  • list
  • text
external_reference_idstring

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

querystring

Search 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_byenum

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

  • created_at
  • updated_at
sort_directionenum

Sort direction. Defaults to desc.

  • asc
  • desc
created_afterstring

Inclusive lower bound on created_at.

created_beforestring

Exclusive upper bound on created_at.

updated_afterstring

Inclusive lower bound on updated_at.

updated_beforestring

Exclusive upper bound on updated_at.

Response · 200

Successful response.

dataarray of objectRequired

Modifier groups matching the request filters for this page.

metaobject

Response metadata, including API version, trace identifier, and warnings when present.

next_page_tokenstring

Pass this token as page_token to read the next page with the same filters. Absent when there are no more results.

request_idstringRequired

Identifier 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.

JSON
{
  "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#

POST/v1/modifier-groupsIdempotent

Requires 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_quantitiesboolean

Whether buyers can select more than one unit of a list modifier.

external_reference_idstring

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

max_quantityinteger

Maximum whole-number quantity for each selected list modifier when allow_quantities is true; fractional quantities are not supported.

max_selectedinteger

Maximum 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_quantityinteger

Maximum combined whole-number quantity across selected list modifiers; fractional quantities are not supported.

metadatamap of string

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

min_quantityinteger

Minimum whole-number quantity for each selected list modifier when allow_quantities is true; fractional quantities are not supported.

min_selectedinteger

Minimum 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_typeenum

Whether buyers choose from a list of modifiers or enter text. On create, inferred as text when text configuration is supplied, otherwise list.

  • list
  • text
modifiersarray of object

Choices 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.

namestringRequired

Name 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_fulfillmentboolean

Whether selections from this group appear in fulfillment details unless overridden for a modifier set.

show_on_receiptboolean

Whether selections from this group appear on buyer receipts unless overridden for a modifier set.

statusenum

Lifecycle status of the modifier group. Only active groups can be offered to buyers; archived groups remain readable and cannot be edited.

  • active
  • inactive
textobject

Text entry rules for a text group. Use text.required to require a value; list groups use min_selected instead.

Response · 201

Successful response.

dataobjectRequired

The modifier group returned by this operation.

metaobject

Response metadata, including API version, trace identifier, and warnings when present.

request_idstringRequired

Identifier 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#

GET/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_idstringRequired

Flint 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.

Response · 200

Successful response.

Same response as Create modifier group.

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

Successful response.

JSON
{
  "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#

PATCH/v1/modifier-groups/{modifier_group_id}Idempotent

Requires 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_idstringRequired

Flint 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_quantitiesboolean

Whether buyers can select more than one unit of a list modifier.

expected_versioninteger

Modifier group version last read by the caller. Required when modifiers is present.

external_reference_idstring or null

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

max_quantityinteger or null

Maximum 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 null

Maximum 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 null

Maximum 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 null

Omitted 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 null

Minimum 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 null

Minimum number of distinct list modifiers buyers must select. Omit it to keep the current value; send null to remove the minimum.

modifiersarray of object

Replaces 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.

namestring

Name 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_fulfillmentboolean

Whether selections from this group appear in fulfillment details unless overridden for a modifier set.

show_on_receiptboolean

Whether selections from this group appear on buyer receipts unless overridden for a modifier set.

statusenum

Lifecycle status of the modifier group. Only active groups can be offered to buyers; archived groups remain readable and cannot be edited.

  • active
  • inactive
textobject or null

Patch 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.

Response · 200

Successful response.

Same response as Create modifier group.

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#

DELETE/v1/modifier-groups/{modifier_group_id}Idempotent

Requires 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_idstringRequired

Flint 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_versioninteger

Optional modifier group version last read by the caller.

Response · 200

Successful response.

Same response as Create modifier group.

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#

GET/v1/modifier-sets

Requires 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_sizeinteger

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

page_tokenstring

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

statusarray of enum

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

  • active
  • inactive
  • archived
external_reference_idstring

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

querystring

Search 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_byenum

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

  • created_at
  • updated_at
sort_directionenum

Sort direction. Defaults to desc.

  • asc
  • desc
created_afterstring

Inclusive lower bound on created_at.

created_beforestring

Exclusive upper bound on created_at.

updated_afterstring

Inclusive lower bound on updated_at.

updated_beforestring

Exclusive upper bound on updated_at.

Response · 200

Successful response.

dataarray of objectRequired

Modifier sets matching the request filters for this page.

metaobject

Response metadata, including API version, trace identifier, and warnings when present.

next_page_tokenstring

Pass this token as page_token to read the next page with the same filters. Absent when there are no more results.

request_idstringRequired

Identifier 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.

JSON
{
  "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#

POST/v1/modifier-setsIdempotent

Requires 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_idstring

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

metadatamap of string

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

modifier_groupsarray of one of

Ordered group entries in this set, including references to reusable groups and groups owned by the set.

namestringRequired

Name 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.

statusenum

Lifecycle status of the modifier set. Only active sets can be offered to buyers; archived sets remain readable and cannot be edited.

  • active
  • inactive

Response · 201

Successful response.

dataobjectRequired

The modifier set returned by this operation.

metaobject

Response metadata, including API version, trace identifier, and warnings when present.

request_idstringRequired

Identifier 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#

GET/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_idstringRequired

Flint 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.

Response · 200

Successful response.

Same response as Create modifier set.

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

Successful response.

JSON
{
  "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#

PATCH/v1/modifier-sets/{modifier_set_id}Idempotent

Requires 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_idstringRequired

Flint 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_versioninteger

Modifier set version last read by the caller. Required when modifier_groups is present.

external_reference_idstring or null

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

metadatamap of string or null

Omitted 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 of

Replaces 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.

namestring

Name 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.

statusenum

Lifecycle status of the modifier set. Only active sets can be offered to buyers; archived sets remain readable and cannot be edited.

  • active
  • inactive

Response · 200

Successful response.

Same response as Create modifier set.

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#

DELETE/v1/modifier-sets/{modifier_set_id}Idempotent

Requires 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_idstringRequired

Flint 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_versioninteger

Optional modifier set version last read by the caller.

Response · 200

Successful response.

Same response as Create modifier set.

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?