The short answer on Flint
Flint is a payments API with the commerce system on top. Its catalog has price lists: a set of variant prices, each with up to 10 quantity breaks, assigned to a customer segment such as wholesale or to one account with price_list_id. Create an order for that customer and Flint picks their price for every line, records which list and break it used, and freezes it on the order. Checkout, invoices, payment links, and shops all charge the buyer their price, and POST /v1/price-previews shows it on your catalog pages before an order exists. The Flint requests are below.
How wholesale pricing is set
Most sellers build the wholesale price up from cost and the retail price up from wholesale. Shopify's wholesale guide gives the usual formulas:
- Cost plus markup. Wholesale price = cost + (cost × markup). A common starting point is to double your cost, which keeps your wholesale margin at 50% or more.
- Keystone retail. Retailers often set their shelf price at double the wholesale price, so wholesale lands at about half of the suggested retail price.
- Volume and contract prices. Lower prices for bulk orders win larger buyers, and minimum order quantities make sure each order covers its share of overhead. Big accounts often negotiate a price of their own.
For a coffee roaster selling a 2 lb bag, that works out to:
| Price | Per bag | How it is set |
|---|
| Your cost per bag | $7.00 | Beans, roasting, bag, and labor |
| Wholesale price | $14.00 | Cost × 2, a 50% margin for you |
| 10 or more bags on one line | $13.00 | Quantity break |
| 40 or more bags on one line | $12.00 | Quantity break |
| Harbor Hotels contract | $11.50 | One account's negotiated price |
| Retail price | $28.00 | Keystone: wholesale × 2 |
Every row after the first is a price for the same bag. Retail buyers pay $28.00, a café on your wholesale list pays $14.00 to $12.00 depending on how many it orders, and Harbor Hotels pays $11.50. Your checkout has to charge each of them the right one.
What Stripe gives you
A Stripe Price is an amount and currency for one product, with optional tiers and a billing interval. It has no customer, segment, or list field, and Stripe has no price list object. That leaves two ways to charge one customer a different amount: an inline price, passed as price_data when you create a Checkout Session, invoice, subscription, or Payment Link, or a separate Price you create for that customer or schedule. Either way, the decision of which customer pays which amount happens in your code.
How to do it on Stripe
Keep the price lists in your own database: which lists exist, which customers and segments use them, each SKU's price and quantity breaks, and which list wins when a customer is in two. A resolver picks the amount:
// Your database is the price list: Stripe has nowhere to keep one
async function unitAmountFor(customerId, sku, quantity) {
const customer = await db.customers.findOne({ id: customerId });
const listIds = [customer.contractListId, segmentLists[customer.segment]].filter(Boolean);
for (const listId of listIds) {
const row = await db.listPrices.findOne({ listId, sku });
if (!row) continue; // this list doesn't price the SKU, try the next one
const tier = row.breaks.findLast((b) => quantity >= b.minQuantity);
return { amount: tier ? tier.amount : row.baseAmount, listId };
}
return { amount: catalog[sku].retailAmount, listId: null };
}
Then create every Checkout Session on your server with an inline price. Write down where the amount came from, because Stripe won't:
const { amount, listId } = await unitAmountFor(customer.id, "HOUSE-2LB", 24);
const session = await stripe.checkout.sessions.create({
mode: "payment",
customer: customer.stripeCustomerId,
line_items: [
{
quantity: 24,
price_data: {
currency: "usd",
product: "prod_house_blend_2lb",
unit_amount: amount, // 1300 for a wholesale café, 2800 for everyone else
},
},
],
// the only record of where the amount came from
metadata: { price_list: listId ?? "retail", sku: "HOUSE-2LB" },
success_url: "https://example.com/thanks?session_id={CHECKOUT_SESSION_ID}",
});
The other route is a Price for each schedule or customer. A tiered Price in volume mode charges every unit at the tier the quantity reaches, and a lookup_key lets your code find it without storing the ID:
// One tiered Price per distinct schedule, named so your code can find it
const price = await stripe.prices.create({
product: "prod_house_blend_2lb",
currency: "usd",
billing_scheme: "tiered",
tiers_mode: "volume",
tiers: [
{ up_to: 9, unit_amount: 1400 },
{ up_to: 39, unit_amount: 1300 },
{ up_to: "inf", unit_amount: 1200 },
],
lookup_key: "house-blend-2lb:wholesale",
});
// At checkout: map the customer to a schedule, then the schedule to a Price
const key = `house-blend-2lb:${customer.contractKey ?? customer.segment ?? "retail"}`;
const { data } = await stripe.prices.list({ lookup_keys: [key] });
Both routes work. In both, your database is the source of truth for prices, your catalog pages read from it, and Stripe sees only the amount you computed.
Where the workaround costs you
On Flint, price lists are part of the catalog
Your products keep their retail prices. Create a price list for the wholesale segment:
curl -X POST https://api.withflintpay.com/v1/price-lists \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: price-list-wholesale" \
-H "Content-Type: application/json" \
-d '{
"name": "Wholesale",
"currency": "USD",
"customer_segments": ["wholesale"]
}'
Add a price for each variant, with its quantity breaks. A batch takes up to 500 prices and applies all or none of them, and a list holds up to 10,000:
curl -X POST https://api.withflintpay.com/v1/price-lists/prl_01KHNPZX45HY43KWJRP1XPA7Z3/prices \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: price-list-wholesale-prices-1" \
-H "Content-Type: application/json" \
-d '{
"prices": [
{
"variant_id": "var_01KH3E28JT97KB6CQ643DZVMXX",
"unit_price_money": { "amount": 1400, "currency": "USD" },
"quantity_price_breaks": [
{ "minimum_quantity": 10, "unit_price_money": { "amount": 1300, "currency": "USD" } },
{ "minimum_quantity": 40, "unit_price_money": { "amount": 1200, "currency": "USD" } }
]
},
{
"variant_id": "var_01KHQKFBF5KZNWJ47TAN9ZT24M",
"unit_price_money": { "amount": 1500, "currency": "USD" },
"quantity_price_breaks": [
{ "minimum_quantity": 10, "unit_price_money": { "amount": 1400, "currency": "USD" } }
]
}
]
}'
Put a customer in the segment and they get the list. There is no mapping table on your side:
curl -X POST https://api.withflintpay.com/v1/customers \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: customer-corner-cafe" \
-H "Content-Type: application/json" \
-d '{
"name": "Corner Café",
"email": "orders@example.com",
"segment": "wholesale"
}'
A contract price for one account
Harbor Hotels negotiated $11.50 on the house blend. Create a list with just that price and assign it to the customer directly:
curl -X POST https://api.withflintpay.com/v1/price-lists \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: price-list-harbor-hotels" \
-H "Content-Type: application/json" \
-d '{ "name": "Harbor Hotels contract", "currency": "USD" }'
curl -X POST https://api.withflintpay.com/v1/price-lists/prl_01KHDJ8FSSZ5AWSH8VHTPRE95B/prices \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: price-list-harbor-hotels-prices-1" \
-H "Content-Type: application/json" \
-d '{
"prices": [
{ "variant_id": "var_01KH3E28JT97KB6CQ643DZVMXX", "unit_price_money": { "amount": 1150, "currency": "USD" } }
]
}'
curl -X PATCH https://api.withflintpay.com/v1/customers/cus_01KHS3C4DWA7N36096Q14DR9GP \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "price_list_id": "prl_01KHDJ8FSSZ5AWSH8VHTPRE95B", "segment": "wholesale" }'
For each line, Flint checks the customer's own list first, then their segment's list, then the variant's regular price. A list that doesn't price a variant falls through, so Harbor Hotels, also in the wholesale segment, pays its contract price on the house blend and the wholesale price, with breaks, on everything else.
Show the customer their prices
Render a signed-in buyer's catalog and cart from POST /v1/price-previews on your server. Send up to 100 lines:
curl -X POST https://api.withflintpay.com/v1/price-previews \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"customer_id": "cus_01KHS3C4DWA7N36096Q14DR9GP",
"line_items": [
{ "variant_id": "var_01KH3E28JT97KB6CQ643DZVMXX", "quantity": 12 },
{ "variant_id": "var_01KHQKFBF5KZNWJ47TAN9ZT24M", "quantity": 12 }
]
}'
Each line returns the unit price for that quantity, the schedule it came from, so you can show "10 or more: $14.00 each", and the list that set it:
{
"data": {
"customer_id": "cus_01KHS3C4DWA7N36096Q14DR9GP",
"line_items": [
{
"variant_id": "var_01KH3E28JT97KB6CQ643DZVMXX",
"quantity": 12,
"unit_price_money": { "amount": 1150, "currency": "USD" },
"price_schedule": {
"unit_price_money": { "amount": 1150, "currency": "USD" },
"quantity_price_breaks": []
},
"catalog_pricing": {
"source": "price_list",
"price_list_id": "prl_01KHDJ8FSSZ5AWSH8VHTPRE95B",
"minimum_quantity": null
}
},
{
"variant_id": "var_01KHQKFBF5KZNWJ47TAN9ZT24M",
"quantity": 12,
"unit_price_money": { "amount": 1400, "currency": "USD" },
"price_schedule": {
"unit_price_money": { "amount": 1500, "currency": "USD" },
"quantity_price_breaks": [
{ "minimum_quantity": 10, "unit_price_money": { "amount": 1400, "currency": "USD" } }
]
},
"catalog_pricing": {
"source": "price_list",
"price_list_id": "prl_01KHNPZX45HY43KWJRP1XPA7Z3",
"minimum_quantity": 10
}
}
]
}
}
With a buyer's customer session, POST /v1/me/price-previews returns the same prices without catalog_pricing, so buyers never see which list applied.
Charge them
Create the order with the customer. Your code never sends an amount: each line gets the price the preview showed, with catalog_pricing recording the list and break, frozen so later list edits don't change it:
curl -X POST https://api.withflintpay.com/v1/orders \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: order-harbor-0412" \
-H "Content-Type: application/json" \
-d '{
"customer_id": "cus_01KHS3C4DWA7N36096Q14DR9GP",
"line_items": [
{ "type": "variant", "variant_id": "var_01KH3E28JT97KB6CQ643DZVMXX", "quantity": 12 },
{ "type": "variant", "variant_id": "var_01KHQKFBF5KZNWJ47TAN9ZT24M", "quantity": 12 }
]
}'
Send the buyer to hosted checkout with a checkout session for that order:
curl -X POST https://api.withflintpay.com/v1/checkout-sessions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: checkout-harbor-0412" \
-H "Content-Type: application/json" \
-d '{ "type": "order", "order_id": "ord_01KHQY77ZXYYK596NGYA1DQ91K" }'
The same prices apply to invoice quick-pay lines, subscription offers, and return exchanges. A payment link or shop doesn't know the buyer in advance, so it opens at your regular prices. Hosted checkout then lets the buyer confirm their email with a code, and Flint reprices the order to that customer's list on the spot. One link works for retail and wholesale buyers alike.
Wholesale buyers usually pay on terms, too. The B2B wholesale with invoicing guide adds net 30 payment terms, resale tax exemptions, deposit invoices, ordering on account at checkout, and receivables aging to the same customers.
Who Flint is built for
US businesses selling online, in their own app, or to other businesses, paid in USD, that want the catalog, price lists, orders, checkout, invoices, and automatic US sales tax behind one API instead of a payment API plus the price table above. Flint can set up the Stripe account your business processes on, or you can connect the one you already have. See Flint for wholesale and B2B.
Stripe and Flint, side by side
| Stripe Prices | Flint price lists |
|---|
| Where a customer's prices live | Your database | A price list, assigned with customer_segments or price_list_id |
| One price for every wholesale buyer | A Price per schedule, mapped to customers in your code | One list with customer_segments: ["wholesale"] |
| A contract price for one account | price_data from your table, or a Price for that customer | A direct list; unpriced variants fall back to the segment list |
| Quantity breaks | Tiers on a Price, one Price per schedule | Up to 10 quantity_price_breaks per list price |
| Show a customer their price before checkout | Your code | POST /v1/price-previews |
| Payment links | Same Prices for every buyer | Reprice when the buyer confirms their email |
| Which list set the amount | Metadata you remember to write | catalog_pricing on every order line |
| Change a wholesale price | A new Price per customer or schedule, then archive the old ones | One update to the list price; existing orders keep theirs |
Questions, answered
What is wholesale pricing?
Wholesale pricing is the lower price a business charges buyers who resell its products or buy in bulk, such as shops, cafés, and distributors, compared with the retail price a consumer pays. Wholesale prices often drop further at larger quantities, and a large account may negotiate its own contract price.
How do you calculate a wholesale price?
Start from your cost per unit and add a markup: wholesale price = cost + (cost × markup). A common rule of thumb is to double your cost, which keeps your wholesale margin at 50% or more. Retailers often use keystone pricing, setting their retail price at double your wholesale price, so wholesale also works out to about half of the suggested retail price.
Does Stripe support price lists or customer-specific pricing?
No. A Stripe Price has a product, an amount, a currency, and optional tiers, but no customer, segment, or list field. To charge one customer a different amount, you keep your own price table and either pass the amount inline with price_data when you create a Checkout Session or invoice, or create a separate Price for that customer and look it up yourself.
How do I give one customer a different price in Stripe?
Look up the customer's price in your own database on your server, then create the Checkout Session with line_items[].price_data and that unit_amount, or create a dedicated Price with a lookup_key such as house-blend:harbor-hotels and pass its ID. Payment Links can't do it per buyer, since a link takes no customer.
Can Stripe do quantity discounts?
Yes, on one Price at a time. A tiered Price with tiers_mode set to volume charges every unit at the tier the quantity reaches, and graduated charges each tier's units at that tier's rate. Tiers belong to the Price, not to a customer, so different discount schedules for different buyers need different Prices.
How does Flint decide which price a customer pays?
For each catalog line, Flint checks the customer's own price list first, then the list assigned to the customer's segment, then the variant's regular price. A list that doesn't price that variant falls through to the next source. Within the chosen schedule, the largest quantity break at or below the line's quantity sets the unit price for every unit on that line.
Do quantity breaks add up across separate lines?
No. Flint prices each line by its own quantity, so 6 bags on one line and 6 on another are two lines of 6, not 12. Put the units on one line to reach a break.
Can a Flint price list have prices in several currencies, or apply by channel or store location?
A list has one currency, set when you create it, and it must match your catalog currency, which is USD today. Lists apply by customer or customer segment. They don't switch by sales channel or store location, so a customer pays their list price wherever they buy.
Do retail promotions apply to wholesale buyers on Flint?
A promotion discounts the net price the list sets, under its usual combination rules, and a price list doesn't count toward max_promotions_per_order. To keep a retail sale away from wholesale buyers, add a customer.segment rule to the promotion.
Can wholesale buyers pay on net 30 terms with Flint?
Yes. Give the customer a default payment term, invoice the order with a deposit schedule if you like, and let approved customers place orders on account in checkout up to a credit limit. The B2B wholesale with invoicing guide builds the whole flow, from price list to receivables aging.
Is Flint a good alternative to Stripe for wholesale and B2B pricing?
Yes, for US businesses selling in USD. Flint stores price lists, segment and per-account assignments, and quantity breaks behind one API, previews a customer's prices for your catalog pages, and reprices orders, checkout sessions, payment links, and shops for the buyer, so you don't keep a parallel price table or mint a Price per customer.
Sources
All sources accessed December 2, 2026.