The short answer on Flint
Flint has store credit in the API. Refund any part of an order to store credit, resolve a return with it, or grant a goodwill credit, and the value lands on the order's customer right away. At Flint's hosted checkout, the buyer confirms their email with a 6-digit code, sees their credit, and applies it, with one card payment covering the rest. Your own checkout gets the same list from the order. Credit from a refund or return keeps the cash with you, and the liability is on the books. The Flint requests are below.
What store credit is, and when sellers use it
Store credit covers three common situations:
- Refund to store credit. The customer is owed money back, and you offer credit instead of a refund to their card. The cash stays in your business, and the customer can spend the credit right away instead of waiting on their bank.
- Return credit. A customer sends an item back and takes its value as credit, often under a returns policy that offers credit in place of a cash refund.
- Goodwill credit. Something went wrong, such as a late delivery or a missing item, and you give the customer credit toward their next order.
Store credit is different from a discount. A discount lowers a price; store credit is value the customer already has, so it pays the total after discounts and tax. Until it's spent, it's a liability on your books, like a gift card.
What Stripe offers: the customer balance
Every Stripe Billing customer has an invoice balance, which Stripe's docs also call the customer balance or customer credit balance. You credit it through the API or Dashboard:
# Credit the customer $20.00 (a negative amount is a credit)
curl https://api.stripe.com/v1/customers/cus_123/balance_transactions \
-u "YOUR_SECRET_KEY:" \
-d amount=-2000 \
-d currency=usd
Stripe's docs set how the credit is used:
- It applies to invoices: by default, the next invoice Stripe finalizes for that customer, in the same currency, after taxes. Subscriptions generate invoices, and you can create one-off invoices.
- It doesn't apply to invoices that Checkout Sessions create with
invoice_creation, so one-time Checkout purchases don't use it. - The
customer_balance payment method draws on a separate cash balance of bank transfer funds. Credit you add to the invoice balance doesn't fund it. - Billing credits, granted through credit grants, apply only to metered subscription prices. Stripe says they aren't a cash balance, gift card, or digital wallet.
- For refunds, a credit note on a paid invoice can put its value on the invoice balance. A refund of a one-time payment goes back to the payment method.
That fits a subscription business crediting the next bill. A seller taking one-time payments through Checkout or PaymentIntents has no store credit to give.
How to give store credit on Stripe anyway
There are two patterns, and you can mix them:
- Bill one-time purchases as invoices. A one-off invoice for the customer picks up their invoice balance when it's finalized. The buyer pays the invoice instead of a Checkout Session.
- Turn the credit into a coupon. Keep each customer's balance in your own ledger and create a single-use coupon for it when they check out:
// One-time purchases: turn the customer's credit into a single-use coupon
const credit = await db.credits.balanceFor(customerId); // your ledger
const coupon = await stripe.coupons.create({
amount_off: credit,
currency: "usd",
max_redemptions: 1,
});
const session = await stripe.checkout.sessions.create({
mode: "payment",
line_items: cart,
discounts: [{ coupon: coupon.id }], // the session's one discount
success_url: "https://example.com/thanks",
});
// After checkout.session.completed: subtract what the coupon applied,
// and issue a new coupon next time for whatever is left.
A Checkout Session takes one coupon or promotion code, so a credit coupon also blocks any sale code the buyer has. These are the places store credit on Stripe breaks:
Where store credit on Stripe goes wrong
On Flint, store credit is part of the order ledger
Flint keeps store credit on gift cards attached to the customer. Each way of giving credit is one request, and checkout finds the credit from the customer.
Refund to store credit
Send destinations with payment_intent: "new_gift_card" on an ordinary refund. It works for a whole order, an amount, or named line items:
curl -X POST https://api.withflintpay.com/v1/refunds \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: refund-ord-1042-credit" \
-H "Content-Type: application/json" \
-d '{
"refund_type": "amount",
"order_id": "ord_01KEZF7C00JBKMARG3P06Z224B",
"amount_money": { "amount": 1000, "currency": "USD" },
"destinations": { "payment_intent": "new_gift_card" }
}'
The refund is succeeded at once and makes no processor refund, so you keep the cash and your balance isn't debited. Flint reverses the order's value and tax like a cash refund, so the same value can't be refunded twice, and attaches the new card to the order's customer:
{
"data": {
"refund_id": "ref_01KEZF7C00H2GAMWD73WZ7K81W",
"status": "succeeded",
"amount_money": { "amount": 1000, "currency": "USD" },
"tender_allocations": [
{
"tender_type": "payment_intent",
"payment_intent_id": "pi_01KEZF7C0050JFFB0HNCWWV1G3",
"status": "succeeded",
"destination": "new_gift_card",
"destination_cards": [
{
"gift_card_id": "gc_01KEZF7C00R5M2K8W4T6N9P3QA",
"amount_money": { "amount": 1000, "currency": "USD" }
}
]
}
]
}
}
When the refund succeeds, Flint emails the buyer a "Your store credit" message with a private link that shows the card's code and balance. Card, Apple Pay, Google Pay, and Link payments in USD can become store credit.
Return credit
Resolve a return with resolution_type: "store_credit". Flint prices it like a refund, including restocking fees from your return policy, and issues the value on new cards once you confirm. A return policy can also choose store credit automatically:
curl -X POST https://api.withflintpay.com/v1/return-resolutions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: resolution-ret_1kmn0a-store-credit" \
-H "Content-Type: application/json" \
-d '{
"return_id": "ret_1kmn0aExample",
"resolution_type": "store_credit",
"line_items": [
{ "return_line_item_id": "retli_1kmn0aExample", "quantity": 1 }
]
}'
Goodwill credit
To credit part of what the customer paid, such as $10 back for a late delivery, refund that amount to store credit as above. To give credit on top of what they paid, create a card for the customer and add the value with a complimentary adjustment:
# 1. A card for the customer, with no value yet
curl -X POST https://api.withflintpay.com/v1/gift-cards \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: goodwill-cus-1042-card" \
-H "Content-Type: application/json" \
-d '{ "currency": "USD", "customer_id": "cus_01KEZF7C006X9JK6NZNA2SM9XD" }'
# 2. Add a $15.00 courtesy credit. The card becomes active.
curl -X POST https://api.withflintpay.com/v1/gift-cards/gc_01KEZF7C00RT1618WYBM1Y94CG/adjust-balance \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: goodwill-cus-1042-credit" \
-H "Content-Type: application/json" \
-d '{
"amount_money": { "amount": 1500, "currency": "USD" },
"reason": "complimentary"
}'
The card shows up in the customer's store account and at checkout. To email it, send a gift card notification.
Spend it at checkout
At Flint's hosted checkout, a buyer who confirms their email with a 6-digit code sees their store credit and applies it. The credit pays the order after discounts and tax, and one card payment covers the rest. In your own checkout, read the order with the checkout credential returned when the buyer confirmed their email, and it lists their credit:
{
"data": {
"order_id": "ord_01KEZF7C0054GQKJ142A8X367A",
"available_store_credit": [
{
"gift_card_id": "gc_01KEZF7C00R5M2K8W4T6N9P3QA",
"last4": "7QXM",
"available_money": { "amount": 1000, "currency": "USD" },
"requires_authorization": false
}
]
}
}
# Apply it with the checkout credential returned when the buyer confirmed their email
curl -X POST https://api.withflintpay.com/v1/orders/ord_01KEZF7C0054GQKJ142A8X367A/gift-cards \
-H "Authorization: Bearer ckat_1kmn0aExample" \
-H "Content-Type: application/json" \
-d '{ "store_credit_id": "gc_01KEZF7C00R5M2K8W4T6N9P3QA" }'
The order's gift_card_estimate then splits the balance into what the credit covers and what the card still pays. Buyers can also type a code, and an order takes up to 20 cards.
What else comes with it:
- Partial spends. A $50 credit spent on a $30 order keeps $20 on the card for next time, with no new code.
- Buyer account. Store credit from refunds and returns appears in the buyer's store account with its balance and history.
- Accounting. Store credit posts no balance transaction; it moves value into gift card liability, and the
gift_card_liability_v1 report rolls that liability forward. - Disputes. If the buyer later disputes the payment that funded the credit, Flint freezes the card's value so it can't be spent twice.
What to know: store credit is USD and pays one-time orders, not subscription purchases or new gift cards. Each card holds up to $2,000, so a larger refund to credit goes on more than one card, and goodwill credit counts toward a $10,000 daily limit on adjustments. Affirm and ACH debit payments go back to the original payment method. The refunds guide covers the details.
Who Flint is built for
US businesses selling online and in apps in USD, such as shops, restaurants, studios, and service businesses, that want refunds, returns, store credit, and checkout on the same orders. Flint processes cards on your own Stripe account or on processing Flint sets up for you. See Flint returns, Flint gift cards, and the Flint commerce API.
Store credit on Stripe and on Flint
| Stripe customer balance | Stripe coupon workaround | Flint store credit |
|---|
| Pays one-time Checkout purchases | No | Yes, as the session's one discount | Yes, at hosted checkout and through the API |
| Pays invoices and subscriptions | Yes, the next invoice by default | As a coupon | One-time orders; not subscriptions |
| Refund to credit | Credit notes on paid invoices | Your code | destinations.payment_intent: new_gift_card |
| Return credit | Your code | Your code | store_credit resolution |
| Leftover after a purchase | Stays on the balance | Lost unless you issue a new code | Stays on the card |
| Applied | After taxes | Off the subtotal, as a discount | After discounts and tax |
| Where the credit lives | A ledger on the customer | Your database | Cards attached to the customer |
Questions, answered
What is store credit?
Store credit is value a business owes a customer that the customer can spend only with that business. It usually comes from a refund given as credit instead of cash, a returned item, or a goodwill gesture such as a credit for a late delivery. The customer spends it at checkout like money, and the business carries it as a liability until it's spent.
Is store credit the same as a refund?
No. A refund sends money back to the card or account that paid. Store credit keeps the value with your business for the customer's next purchase, so the cash stays with you and the customer can spend it right away instead of waiting for their bank.
Does Stripe have store credit?
Stripe has a customer balance, also called the customer invoice balance, that you can credit through the API or Dashboard. It applies to invoices, such as subscription renewals and one-off invoices. It doesn't pay one-time Checkout Sessions or PaymentIntents, and Stripe's billing credits apply only to metered subscription usage.
Can I use the Stripe customer balance at Checkout?
Not for one-time payments. Stripe's docs say the invoice balance doesn't apply to invoices that Checkout Sessions create with invoice_creation, and the customer_balance payment method uses a bank transfer cash balance, not invoice credit. Subscription invoices can use the balance.
How do I refund a customer to store credit?
On Flint, send destinations.payment_intent: new_gift_card on an ordinary refund. Flint issues the value on a new card attached to the customer, makes no processor refund, and emails the buyer a private link to it. On Stripe, a credit note on a paid invoice can credit the invoice balance; for one-time payments you track the credit yourself.
Which payments API supports store credit at checkout?
Flint Pay. Refunds, returns, and goodwill credits put store credit on the customer, and a buyer who confirms their email at checkout sees it and applies it to the order alongside one card payment. Your own checkout gets the same list from the order's available_store_credit.
Can store credit pay for a subscription on Flint?
No. Flint store credit pays one-time USD orders, after discounts and tax. It can't pay subscription purchases or buy gift cards.
Sources
All sources accessed December 2, 2026.