What split tender means
A tender is one way a buyer pays: a card, a gift card, cash, a bank debit. A split tender order has two or more, and it's paid once they add up to the order total. A $100.00 order paid with a $60.00 gift card and $40.00 on a Visa is split tender. So is a dinner bill two friends put on two cards.
Split tender divides how the buyer pays. It is different from a split payment between sellers, where one payment is divided between several merchants on a marketplace. The two can happen on the same order.
Taking the payment is the easy half. The refund is where split tender gets expensive, because every refund has to answer three questions the payment never asked:
- Which tender gets money back first?
- How much does each tender get, without returning more than it paid?
- When one item comes back, which tender paid for that item?
On Flint, the order already knows every tender and what each one paid for, so one refund request answers all three.
Which part you need
Pick a refund order before the first return
Which tender comes first is a refund policy you choose. What matters is choosing one, applying it the same way every time, and never sending a tender more than it paid. These are the four common choices:
| Policy | How it splits a refund | When it fits |
|---|
| Gift card first | Credit the gift cards up to what each paid, then refund cards. | Keeping value that started as store credit as store credit. Flint's default. |
| Card first | Refund the cards up to what each paid, then credit gift cards. | Buyers who asked for money back on their card. |
| In proportion | Split every refund by each tender's share of the order total. | Keeping each tender's remaining balance in step with the order. |
| By line item | Send each returned item's money back to the tender that paid for that item. | Returns, where the item, not the order, decides the refund. |
Take the $100.00 order paid with a $60.00 gift card and $40.00 by card. Under gift card first, a $30.00 refund all goes back to the gift card, and an $80.00 refund puts $60.00 on the gift card and $20.00 on the card. Under card first, the same $80.00 refund puts $40.00 on the card and $40.00 on the gift card. Flint uses gift card first by default and lets you set any other split per refund.
On Stripe, each tender is its own refund
A Stripe PaymentIntent has one payment method, so a two-card order is two PaymentIntents that Stripe doesn't link. A refund names one charge or PaymentIntent, and its amount can't exceed what's left unrefunded on that charge. Gift cards sit outside the Refunds API entirely: Stripe's gift card payment method is a private preview for cards from a provider you already have an agreement with, and a refund call on a gift card PaymentIntent returns an error; Stripe says to reload the card or activate a new one instead. If you sell your own gift cards on Stripe, their balances live in your database (see gift cards on Stripe).
So the split is your code. Keep every tender on your order record with what it paid and what it has had back, apply your policy, and make one move per tender:
// Your order record keeps every tender the buyer used. Stripe sees each
// card as an unrelated PaymentIntent, and the gift card lives in your ledger.
async function refundOrder(order, amount, orderRefundId) {
const left = (t) => t.paid - t.refunded;
const capacity = order.tenders.reduce((sum, t) => sum + left(t), 0);
if (amount > capacity) throw new Error("More than the order's tenders have left");
// Your policy. This one credits gift cards first, then the card with the most left.
const tenders = [...order.tenders].sort(
(a, b) => (a.type === "gift_card" ? 0 : 1) - (b.type === "gift_card" ? 0 : 1) || left(b) - left(a),
);
let remaining = amount;
for (const tender of tenders) {
const take = Math.min(remaining, left(tender));
if (take <= 0) continue;
const key = `${orderRefundId}-${tender.id}`;
if (tender.type === "gift_card") {
await ledger.creditGiftCard(tender.giftCardId, take, { idempotencyKey: key });
await db.tenderRefunds.upsert({ key, tenderId: tender.id, amount: take, status: "succeeded" });
} else {
const refund = await stripe.refunds.create(
{ payment_intent: tender.paymentIntentId, amount: take, metadata: { tender_refund_key: key } },
{ idempotencyKey: key },
);
await db.tenderRefunds.upsert({ key, tenderId: tender.id, amount: take, status: refund.status });
}
remaining -= take;
if (remaining === 0) break;
}
}
Stripe card refunds can stay pending and fail later, and Stripe sends refunds only to the original payment method. Your gift card credit succeeded the moment you wrote it. Track each tender's outcome separately:
// A card refund can fail after the gift card credit already succeeded.
if (event.type === "refund.updated" || event.type === "refund.failed") {
const refund = event.data.object;
await db.tenderRefunds.setStatus(refund.metadata.tender_refund_key, refund.status);
// Roll the per-tender statuses up to the order refund, and tell the
// buyer what came back and what is still on its way.
}
Square handles the payment side natively: its Orders API takes several payments on one order, such as a gift card and then a credit card, through CreatePayment and PayOrder. Refunds still go one payment at a time. RefundPayment takes a payment ID and an amount, and a refund can't exceed what that payment collected, so the split across payments is your code on Square too.
Four ways split tender refunds go wrong
Which tender paid for the item that came back
A return is about an item, and a split tender order paid for its items with more than one tender. On Stripe, a PaymentIntent records an amount. Which items that amount covered was decided by your code when it split the order, so your code has to store that mapping at payment time and read it back at refund time. Without that mapping, an order-level policy decides, and a returned item the gift card paid for can come back to the card.
Flint records it for you. When an order is paid, Flint stores how much of each line item and charge every tender paid. Name a line in a refund, and its money goes back to the tender that paid for it. If a gift card and a card both paid for that line, the gift card share comes back first:
curl -X POST https://api.withflintpay.com/v1/refunds \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: refund-ord-2077-boots" \
-d '{
"refund_type": "targets",
"order_id": "ord_01KEZF7C00JBKMARG3P06Z224B",
"reason": "wrong_item_shipped",
"line_items": [
{"order_line_item_id": "li_01KEZF7C004XP0V220YVMGQ354", "quantity": 1}
]
}'
Flint works out the line's amount, its discount and tax share included (see refunding a line item), and returns each tender's part in tender_allocations. To send a named item somewhere else, combine line_items with refund_type: "amount" and tender_allocations. Allocations that don't cover the part of the item a tender paid for return 409 LIMIT_EXCEEDED.
On Flint, one refund splits across the tenders
Flint is a payments API with orders built in. An order can be paid with up to 20 Flint gift cards plus a card on the hosted checkout, or with several cards in one pay call from your own page, and every tender stays attached to the order. A refund by order_id plans across all of them.
Refund an amount and let the order split it
curl -X POST https://api.withflintpay.com/v1/refunds \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: refund-ord-2077-1" \
-d '{
"refund_type": "amount",
"order_id": "ord_01KEZF7C00JBKMARG3P06Z224B",
"amount_money": {"amount": 8000, "currency": "USD"},
"reason": "requested_by_customer"
}'
Flint returns money to the original gift cards first, in the order the buyer applied them, then to the payment with the most left to refund. On the $60.00 gift card and $40.00 card order, this $80.00 refund credits $60.00 to the gift card and refunds $20.00 to the card. On a $120.00 order paid $70.00 and $50.00 on two cards, a $60.00 refund comes from the $70.00 card. A later $40.00 refund comes from the $50.00 card, which by then has the most left. Each payment appears in payment_refunds with its own status, and a refund larger than what the tenders have left is refused instead of partly made.
$80.00 refunded on Flint, gift card first
Gift cardtender_allocations[0].amount_money
Everything the gift card paid
$60.00
Cardtender_allocations[1].amount_money
The rest, from the payment with the most left
$20.00
$80.00
To show the buyer the split before you commit, send the same body to POST /v1/refund-previews. It estimates the split without holding any balance, and takes line items too:
curl -X POST https://api.withflintpay.com/v1/refund-previews \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"refund_type": "amount",
"order_id": "ord_01KEZF7C00JBKMARG3P06Z224B",
"amount_money": {"amount": 8000, "currency": "USD"}
}'
{
"data": {
"original_gift_card_money": {"amount": 6000, "currency": "USD"},
"original_payment_money": {"amount": 2000, "currency": "USD"}
},
"request_id": "req_01KWM694EG9SNYD9JYR0SQVVP6"
}
Choose each tender's amount
When your policy is different, or a buyer asks for money on the card, send tender_allocations. Each entry names an original tender by its gift_card_redemption_id (from the order's gift_card_settlements) or payment_intent_id, with the amount it gets back:
curl -X POST https://api.withflintpay.com/v1/refunds \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: refund-ord-2077-split" \
-d '{
"refund_type": "amount",
"order_id": "ord_01KEZF7C00JBKMARG3P06Z224B",
"amount_money": {"amount": 3000, "currency": "USD"},
"tender_allocations": [
{
"tender_type": "gift_card_redemption",
"gift_card_redemption_id": "gcr_01KF8M2N4P6Q8R0S2T4V6W8X0Y",
"amount_money": {"amount": 1000, "currency": "USD"}
},
{
"tender_type": "payment_intent",
"payment_intent_id": "pi_01KEZF7C0050JFFB0HNCWWV1G3",
"amount_money": {"amount": 2000, "currency": "USD"}
}
]
}'
The gift card credit succeeds as the refund is created; the card refund follows. The response is abridged:
{
"data": {
"refund_id": "ref_01KEZF7C00H2GAMWD73WZ7K81W",
"status": "pending",
"amount_money": {"amount": 3000, "currency": "USD"},
"order_id": "ord_01KEZF7C00JBKMARG3P06Z224B",
"tender_allocations": [
{
"refund_allocation_id": "rta_01KF8M3A5B7C9D1E3F5G7H9J1K",
"tender_type": "gift_card_redemption",
"gift_card_redemption_id": "gcr_01KF8M2N4P6Q8R0S2T4V6W8X0Y",
"gift_card_id": "gc_01KF8M2N4P6Q8R0S2T4V6W8X1Z",
"destination": "original",
"amount_money": {"amount": 1000, "currency": "USD"},
"refunded_tip_money": {"amount": 0, "currency": "USD"},
"status": "succeeded",
"succeeded_at": "2026-12-02T16:20:11Z"
},
{
"refund_allocation_id": "rta_01KF8M3A5B7C9D1E3F5G7H9J2M",
"tender_type": "payment_intent",
"payment_intent_id": "pi_01KEZF7C0050JFFB0HNCWWV1G3",
"destination": "original",
"amount_money": {"amount": 2000, "currency": "USD"},
"refunded_tip_money": {"amount": 0, "currency": "USD"},
"status": "pending"
}
],
"payment_refunds": [
{
"payment_intent_id": "pi_01KEZF7C0050JFFB0HNCWWV1G3",
"amount_money": {"amount": 2000, "currency": "USD"},
"refunded_tip_money": {"amount": 0, "currency": "USD"},
"status": "pending"
}
],
"version": 1
},
"request_id": "req_01KWM694EG9SNYD9JYR0SQVVP7"
}
The checks the Stripe build leaves to you are on the server:
- Allocations are exhaustive: a tender you leave out gets nothing, and the amounts must add up to
amount_money or the request returns 400 INVALID_REQUEST. - No tender can get back more than it paid, less its pending and succeeded refunds. Over that, the request returns
409 LIMIT_EXCEEDED with param naming the allocation and the remainder in maximum_money. - Retrying with the same
Idempotency-Key returns the original refund without crediting the gift card again.
Refund to store credit instead
Set destination to new_gift_card on an allocation, or destinations on the whole refund, and Flint issues that value on new Flint gift cards in the same request. That covers a buyer who wants store credit for a card payment, and a gift card that was closed after the purchase or can't hold the whole credit, where a refund to the original card returns 400 INVALID_REQUEST asking for a destination. Card store credit works on USD card, Apple Pay, Google Pay, and Link payments on an order.
When one part fails
Every entry in tender_allocations and payment_refunds has its own status. If the card refund fails after the gift card credit succeeded, the refund ends partially_succeeded, the failed entry says why in failure_reason, and the failed amount becomes refundable again. Flint sends refund.partially_succeeded, so you can tell the buyer what came back and what is still being fixed. The refunds guide covers every rule and error.
Stripe and Flint split tender refunds, side by side
| Stripe | Flint |
|---|
| Tenders on one order | Separate PaymentIntents you link in your database | Gift cards and payments attached to the order |
| Refund across tenders | One Refunds API call per charge or PaymentIntent | One POST /v1/refunds with order_id |
| Which tender first | Your code | Gift cards first, then the payment with the most left |
| Exact amount per tender | One refund per PaymentIntent, capped per charge | tender_allocations, checked against each tender's remainder |
| Returned item to its tender | Your records of which payment paid which item | Recorded at payment; a named line goes back to the tender that paid for it |
| Gift card refunds | Provider gift cards are a private preview with no Refunds API support | Flint gift cards credited back in the same refund |
| Store credit instead | Refunds go only to the original payment method | destination: "new_gift_card" per tender |
| One part fails | Each refund fails alone; you roll up the order | Per-tender status and a partially_succeeded refund |
| Preview the split | Your code | POST /v1/refund-previews |
Questions, answered
What is split tender?
Split tender means paying one order with more than one payment method, called tenders: a gift card plus a card, two cards, or cash plus a card. The order is paid once its tenders add up to the total. It is different from a split payment between sellers, where one payment is divided between several merchants.
Which tender should get refunded first?
There is no single rule; pick one and apply it the same way every time. Common choices are gift card first, card first, in proportion to what each tender paid, or by the line item that came back. Flint refunds the original gift cards first, then the payment with the most left to refund, and lets you set the exact amount per tender when you need another split.
How do I refund an order paid with a gift card and a credit card on Stripe?
Stripe refunds one charge or PaymentIntent at a time, and its own gift card payment method is a private preview whose payments can't be refunded through the Refunds API. Decide the split in your code, credit the gift card in the ledger that tracks it, and create a Stripe refund for the card part with an idempotency key. Then track each part's status, since the card refund can fail after the gift card credit succeeded.
Can I refund a split payment to just one card?
Yes, up to what that card paid. On Stripe, refund its PaymentIntent with an amount up to its unrefunded total. On Flint, send the payment's payment_intent_id with the order, or send tender_allocations naming that payment and the amount.
Can a split tender refund go to store credit instead?
Stripe sends refunds only to the original payment method, so store credit is a separate gift card or balance you issue yourself. On Flint, set destination to new_gift_card on a tender allocation, or destinations on the refund, and Flint issues the value on new Flint gift cards in the same request.
What happens if part of a split tender refund fails on Flint?
Each tender has its own status. Gift card credit succeeds when the refund is created; a card refund can stay pending and fail later. When some parts succeed and others fail, the refund ends partially_succeeded, tender_allocations shows which part failed, and the failed amount becomes refundable again.
Flint gift cards are USD, so gift card allocations are too.
Sources
Accessed December 2, 2026.