Skip to content

Store credit: how to issue it and let customers spend it at checkout

Store credit is value your business owes a customer that they can spend only with you: a refund given as credit instead of cash, the value of a returned item, or a goodwill credit after a late delivery. The customer spends it like money at checkout, and you carry it as a liability until they do. On Stripe, the customer balance holds credit, but it applies to invoices, such as subscription renewals. It can't pay a one-time Checkout Session or PaymentIntent.
Verified against official documentationReviewed Send a correction (opens in a new tab)

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:

Shell
# 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:
JavaScript
// 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

  1. The credit doesn't apply at Checkout#

    A customer with a $20 credit balance bought a product through Checkout and paid full price.

    Stripe's customer balance applies to invoices. A one-time Checkout Session charges a PaymentIntent, and Stripe's docs say the balance doesn't apply to invoices that Checkout Sessions create with invoice_creation either. The customer_balance payment method draws on bank transfer funds, not on this credit.

    Confirm it

    Compare the customer's balance with the session's amount_total after a one-time purchase.

    Fix

    Bill one-time purchases as invoices so the balance applies, or turn the credit into a coupon for that session.

  2. A renewal spends the credit first#

    A customer saved credit for a purchase, and their next subscription invoice used it up.

    By default, Stripe applies the invoice balance to the next invoice it finalizes for that customer, whatever the invoice is for.

    Confirm it

    List the customer's balance transactions and look for applied_to_invoice entries on renewal invoices.

    Fix

    Customize application with customer balance application scripts, or apply credit to a chosen open invoice with the public preview API.

  3. A coupon used as credit loses the remainder#

    A customer used a $50 credit code on a $30 order, and the other $20 is gone.

    An amount_off coupon is subtracted from the subtotal and stops at zero. With max_redemptions of 1, one order uses it up, whatever it spends.

    Confirm it

    Compare each credit code's amount with the discount it applied.

    Fix

    Issue a new code for the remainder after each use, and keep every customer's balance in your own ledger.

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
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:

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

Shell
# 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:

JSON
{
  "data": {
    "order_id": "ord_01KEZF7C0054GQKJ142A8X367A",
    "available_store_credit": [
      {
        "gift_card_id": "gc_01KEZF7C00R5M2K8W4T6N9P3QA",
        "last4": "7QXM",
        "available_money": { "amount": 1000, "currency": "USD" },
        "requires_authorization": false
      }
    ]
  }
}
Shell
# 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 balanceStripe coupon workaroundFlint store credit
Pays one-time Checkout purchasesNoYes, as the session's one discountYes, at hosted checkout and through the API
Pays invoices and subscriptionsYes, the next invoice by defaultAs a couponOne-time orders; not subscriptions
Refund to creditCredit notes on paid invoicesYour codedestinations.payment_intent: new_gift_card
Return creditYour codeYour codestore_credit resolution
Leftover after a purchaseStays on the balanceLost unless you issue a new codeStays on the card
AppliedAfter taxesOff the subtotal, as a discountAfter discounts and tax
Where the credit livesA ledger on the customerYour databaseCards 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.