The short answer on Flint
Flint is a payments API with the commerce system on top. Its catalog has modifiers: priced choices such as gift wrap at $5.00, free-text fields such as monogram letters, and rules such as "pick one milk" or "up to three toppings". You group them into a modifier set and attach it to a product. Each order line stores the buyer's selections with their prices, Flint enforces the rules before anyone pays, and a refund of the item returns its add-ons with it, itemized. The Flint requests are below.
What Stripe gives you
Stripe Checkout has three pieces you can assemble into add-ons:
- More line items. Each add-on is a Product and Price of its own, listed after the item in
line_items. A line item takes a price, a quantity, and metadata, and has no field that names a parent item. - Optional items. Up to 10 per session, offered on the Checkout page for the buyer to add. They are products too, and the buyer can always remove them.
- Custom fields. Up to three per session: text up to 255 characters, numbers, or a dropdown. They collect answers and don't change the price. Stripe's own text field example is a personalized engraving.
The workaround, in code
Build the choices on your product page. When the buyer checks out, send the item and each add-on as line items, tie them together with a key in metadata, and ask for the engraving text in a custom field:
// The buyer picked gift wrap and a monogram on your product page
const lineKey = "wallet_1";
const session = await stripe.checkout.sessions.create({
mode: "payment",
line_items: [
{ price: WALLET_PRICE_ID, quantity: 1, metadata: { line_key: lineKey } },
// Each add-on is another product, tied back only by your metadata
{ price: GIFT_WRAP_PRICE_ID, quantity: 1, metadata: { parent_line: lineKey } },
{ price: MONOGRAM_PRICE_ID, quantity: 1, metadata: { parent_line: lineKey } },
],
// Up to three per session, and none of them knows which line it is for
custom_fields: [
{
key: "monogram_wallet_1",
label: { type: "custom", custom: "Monogram letters (wallet 1)" },
type: "text",
text: { maximum_length: 3 },
},
],
success_url: "https://example.com/thanks?session_id={CHECKOUT_SESSION_ID}",
});
After payment, read the line items back and rebuild each item with its add-ons and its text before anything reaches fulfillment:
// checkout.session.completed: put each item back together
const session = event.data.object;
const { data: lines } = await stripe.checkout.sessions.listLineItems(session.id, {
limit: 100,
});
for (const parent of lines.filter((line) => !line.metadata?.parent_line)) {
const key = parent.metadata?.line_key;
const addOns = lines.filter((line) => line.metadata?.parent_line === key);
const letters = session.custom_fields.find((field) => field.key === `monogram_${key}`)
?.text?.value;
await db.orderLines.insert({
sessionId: session.id,
lineKey: key,
item: parent.description,
addOns: addOns.map((line) => ({ name: line.description, amount: line.amount_total })),
monogram: letters ?? null,
});
}
That is the whole model. Which add-ons a product offers, what they cost, which are required, and how many the buyer may pick live in your code and your database, and every receipt, packing slip, and refund depends on that metadata key staying intact.
Where the workaround costs you
On Flint, add-ons are modifiers on the line
A modifier group is one prompt: a list of priced choices, or a text field. A modifier set puts groups in order and attaches to a product, a variant, or a bundle. This set offers gift wrap at $5.00, a monogram at $10.00, and a three-letter field for the initials:
curl -X POST https://api.withflintpay.com/v1/modifier-sets \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: modifier-set-wallet-add-ons" \
-H "Content-Type: application/json" \
-d '{
"name": "Wallet add-ons",
"modifier_groups": [
{
"source": "inline",
"position": 0,
"modifier_group": {
"name": "Gift wrap",
"min_selected": 0,
"max_selected": 1,
"modifiers": [
{ "name": "Gift wrap", "unit_price_delta_money": { "amount": 500, "currency": "USD" } }
]
}
},
{
"source": "inline",
"position": 1,
"modifier_group": {
"name": "Monogram",
"min_selected": 0,
"max_selected": 1,
"modifiers": [
{ "name": "Add a monogram", "unit_price_delta_money": { "amount": 1000, "currency": "USD" } }
]
}
},
{
"source": "inline",
"position": 2,
"modifier_group": {
"name": "Monogram letters",
"modifier_group_type": "text",
"text": { "required": false, "max_length": 3, "multiline": false }
}
}
]
}'
Attach it to the wallet. Every variant of the wallet without a set of its own then offers these add-ons:
curl -X PATCH https://api.withflintpay.com/v1/products/prod_1kmn0aExample \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "modifier_set_id": "ms_1kmn0aExample" }'
Sell it by naming the buyer's choices on the order line. List choices send their modifier_id, and text sends the group and the value. Your code never sends a price:
curl -X POST https://api.withflintpay.com/v1/orders \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: order-wallet-2207" \
-H "Content-Type: application/json" \
-d '{
"line_items": [
{
"type": "variant",
"variant_id": "var_1kmn0aExample",
"quantity": 1,
"modifiers": [
{ "type": "catalog", "modifier_id": "mod_1kmn0aExample" },
{ "type": "catalog", "modifier_id": "mod_1kmn0bExample" },
{ "type": "text", "text": { "modifier_group_id": "mg_1kmn0cExample", "value": "AJR" } }
]
}
]
}'
The line comes back with its add-ons priced on it (abridged):
{
"type": "variant",
"variant_id": "var_1kmn0aExample",
"name": "Leather wallet",
"quantity": 1,
"unit_price_money": { "amount": 4800, "currency": "USD" },
"base_subtotal_money": { "amount": 4800, "currency": "USD" },
"modifiers": [
{
"modifier_group_name": "Gift wrap",
"name": "Gift wrap",
"quantity": 1,
"unit_price_delta_money": { "amount": 500, "currency": "USD" },
"total_money": { "amount": 500, "currency": "USD" }
},
{
"modifier_group_name": "Monogram",
"name": "Add a monogram",
"quantity": 1,
"unit_price_delta_money": { "amount": 1000, "currency": "USD" },
"total_money": { "amount": 1000, "currency": "USD" }
},
{
"modifier_group_name": "Monogram letters",
"name": "Monogram letters",
"text_value": "AJR",
"quantity": 1,
"unit_price_delta_money": { "amount": 0, "currency": "USD" },
"total_money": { "amount": 0, "currency": "USD" }
}
],
"modifier_total_money": { "amount": 1500, "currency": "USD" },
"subtotal_money": { "amount": 6300, "currency": "USD" }
}
Each selection's total_money is its price change times its quantity times the line quantity, and subtotal_money is the item plus modifier_total_money. Flint copies the names and prices onto the line, so a later catalog change doesn't rewrite what was sold. Promotions discount the item's price plus its modifiers, sales tax is calculated on the whole line, and the receipt and fulfillment details list the add-ons under the item.
Required choices and limits
Set min_selected to 1 to require a choice, max_selected to cap it, and allow_quantities with max_quantity for extras sold by the unit, such as up to three extra shots at $0.75 each. Flint checks every order line against the set: leaving out a required group returns 400 INVALID_REQUEST with detail REQUIRED, and too many choices returns detail INVALID_VALUE, before the buyer is charged. Text groups take max_length up to 500 bytes and can forbid line breaks.
Hosted pages and checkout
A payment link for the wallet renders the gift wrap and monogram choices and the letters field on the hosted page, with the rules applied, so you can sell add-ons without building a page at all. For your own storefront, send the order to hosted checkout with a checkout session; it shows each add-on under its item. Subscriptions take modifiers on their lines too.
Refund the item, and its add-ons follow
Refund the wallet's line by its ID:
curl -X POST https://api.withflintpay.com/v1/refunds \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: refund-wallet-2207" \
-H "Content-Type: application/json" \
-d '{
"refund_type": "targets",
"order_id": "ord_1kmn0aExample",
"line_items": [{ "order_line_item_id": "li_1kmn0aExample" }]
}'
Flint splits the line's refund across the item and each priced add-on, and the refund records each share (abridged):
{
"line_item_allocations": [
{
"order_line_item_id": "li_1kmn0aExample",
"quantity": 1,
"modifiers": [
{
"modifier_group_name": "Gift wrap",
"name": "Gift wrap",
"quantity": 1,
"amount_money": { "amount": 500, "currency": "USD" }
},
{
"modifier_group_name": "Monogram",
"name": "Add a monogram",
"quantity": 1,
"amount_money": { "amount": 1000, "currency": "USD" }
}
]
}
]
}
Refund one of several units, or a partial amount, and each add-on gets its proportional share. Your support team and your accounting read what went back from the refund itself. See refunds.
Who Flint is built for
US businesses selling online or in their own app, paid in USD, that want the catalog, add-ons, orders, checkout, promotions, and automatic US sales tax behind one API instead of a payment API plus the tables above. Flint processes payments on an account it sets up for you, or on your own Stripe account. See Flint for online stores.
Stripe Checkout and Flint modifiers, side by side
| Stripe Checkout add-ons | Flint modifiers |
|---|
| Where an add-on lives | A separate line item, tied back with your metadata | In modifiers on its item's order line |
| Price of an add-on | A Product and Price for each add-on | unit_price_delta_money on each choice |
| Engraving or gift text | Up to 3 custom fields per session, not tied to an item | Text groups on each item, up to 500 bytes |
| "Pick one" and "up to three" | Your code; optional items can always be removed | min_selected, max_selected, and quantity limits, enforced on the order |
| Offered on a hosted page | Up to 10 optional items per session | Payment links render list and text groups |
| Refund an item with its add-ons | An amount you add up | A line refund, split across each add-on |
Questions, answered
Does Stripe support product add-ons or modifiers?
Not as a feature. A Stripe Product has no modifier, add-on, or option fields. You can sell an add-on as its own line item or as one of up to 10 optional items, and collect text such as engraving in up to three custom fields per Checkout Session, but nothing ties the add-on to the item it belongs to.
How do I add an engraving or gift message field to Stripe Checkout?
Add a `custom_fields` entry of type `text` when you create the Checkout Session. Text fields take up to 255 characters, a session takes up to three fields, and the answers arrive in `custom_fields` on the `checkout.session.completed` event. The field doesn't change the price, so a paid engraving also needs its own line item.
Can Stripe Checkout charge extra for an add-on?
Yes, as a separate line item or optional item with its own Price. It appears on the receipt as its own product, and linking it back to the item it modifies is up to your metadata and your database.
How do I refund an item and its add-ons on Stripe?
Add up the item and its add-on lines yourself and refund that amount on the charge or PaymentIntent. Stripe's refund has no line item parameter, so record what the refund covered in your own system.
Which payments API has modifiers built in?
Flint's catalog has modifier groups and modifier sets: priced list choices such as gift wrap or an extra shot, free-text groups such as engraving, and selection rules Flint enforces on the order. Each order line stores its selections with their prices, and refunds split each line across its modifiers.
Can a Flint text modifier have a price?
No. Text groups collect the words and add nothing to the price. Price the service with a list choice, such as "Add a monogram" at $10.00, and collect the letters in a text group in the same set. Flint checks each group's own rules, so show the letters field on your page once the buyer picks the monogram.
Do I need a Stripe account to use Flint?
No. Flint processes payments on a payments account it sets up for you, or on your own Stripe account if you connect one. The catalog, modifiers, orders, and refunds work the same either way.
Sources
All sources accessed December 2, 2026.