Skip to content

How to exchange an item in Stripe

Stripe has no exchange. A buyer who wants a different size gets a refund for what the old item cost and a new payment for what the new one costs, and your code keeps track of which is which. Move only the difference: refund it when the new item costs less, charge it when it costs more, and nothing when the prices match. On Flint, the swap is one edit to the paid order, and Flint settles the difference and the tax for you.
Verified against official documentationReviewed Send a correction (opens in a new tab)

Exchange vs return

Both start with an item coming back. In a return, the buyer gets their money back, as a refund or store credit. In an exchange, the buyer gets a different item, such as the next size up, and money moves only for any price difference. A same-price size swap moves no money at all, which is why exchanges keep revenue that returns give back.

ReturnExchange
What the buyer getsMoney back, or store creditA different item
Money that movesThe item's price, discount and tax includedOnly the price difference, either way
The saleReversedKept, with different items
StockThe item comes backOne item comes back, another goes out

What an exchange policy says

An exchange policy answers six questions before a buyer asks them: how long they have to request one, what condition the item has to be in, which items are final sale, how a price difference is paid or refunded, who pays shipping each way, and whether the replacement ships before or after the return arrives. The free return policy generator writes one with exchanges, store credit, and fees, ready to paste into your store.

Which Stripe path applies to you

The exchangeYour path
Same price, different size or colorMove no money; fix the order record
The new item costs lessRefund the difference
The new item costs moreCharge the difference
You were about to refund everything and sell againRead the traps first
You want the swap, the money, tax, and stock in one callExchanges on Flint

The examples use one order: a Merino crew, size M, $48.00 plus $3.84 tax, $51.84 in all. Stripe sees one PaymentIntent for it and no items.

Same price: move no money

The buyer wants the crew in L. No money moves, so Stripe has nothing to do and charges nothing. Everything else is yours to change. Update the item on your order, put the M back in stock and take an L out, and ship the L. If you record tax with the custom Stripe Tax integration and the two items have different tax codes, record a reversal for the M and a new transaction for the L.

The new item costs less: refund the difference

The buyer swaps the crew for a $32.00 tee, $34.56 with tax. Refund the $17.28 difference on the original PaymentIntent, and write what it was for into the refund's metadata, since the refund itself carries only an amount:

Shell
# The tee costs $17.28 less than the crew, tax included
curl https://api.stripe.com/v1/refunds \
  -u "sk_test_...:" \
  -d payment_intent=pi_... \
  -d amount=1728 \
  -d reason=requested_by_customer \
  -d "metadata[order_id]=1042" \
  -d "metadata[exchange]=crew-M-for-tee-L"

Stripe keeps its processing fee on the original payment, and the refund goes to the card that paid. Work out the difference with tax on both sides and any discount the crew carried, because Stripe doesn't know either item. The line-item refund lookup covers that arithmetic.

The new item costs more: charge the difference

The buyer trades up to a $68.00 hoodie, $73.44 with tax, and owes $21.60. Stripe raises an authorization only before capture, so after the sale the difference is a new payment. When the original payment saved the card with setup_future_usage and the buyer agreed to later charges, charge it off-session:

Shell
# Only works if the original payment saved the card with
# setup_future_usage and the buyer agreed to later charges
curl https://api.stripe.com/v1/payment_intents \
  -u "sk_test_...:" \
  -d amount=2160 \
  -d currency=usd \
  -d customer=cus_... \
  -d payment_method=pm_... \
  -d off_session=true \
  -d confirm=true \
  -d "metadata[order_id]=1042" \
  -d "metadata[original_payment_intent]=pi_..." \
  -d "metadata[exchange]=crew-M-for-hoodie-L"

The issuer can still decline it, or ask for authentication the buyer isn't there to give. Without a saved card, and as the fallback, send the buyer a Checkout Session for the difference and ship the hoodie once checkout.session.completed arrives:

Shell
# No saved card: send the buyer a Checkout Session for the difference
curl https://api.stripe.com/v1/checkout/sessions \
  -u "sk_test_...:" \
  -d mode=payment \
  -d "line_items[0][price_data][currency]=usd" \
  -d "line_items[0][price_data][product_data][name]=Exchange balance, order 1042" \
  -d "line_items[0][price_data][unit_amount]=2160" \
  -d "line_items[0][quantity]=1" \
  -d "payment_intent_data[metadata][order_id]=1042" \
  --data-urlencode "success_url=https://shop.example.com/orders/1042"

Incremental authorization raises a payment only before capture and on IC+ pricing (others ask Stripe support), so it rarely fits an exchange that comes days after the sale.

Five ways a Stripe exchange goes wrong

  1. Refund everything, then charge again#

    Support refunded the whole order and sent the buyer a new payment link for the new item. The buyer sees a refund pending for days and a second charge today.

    Stripe keeps its processing fee on the original payment when you refund it, and the new payment carries its own fee, so you pay twice on a sale you made once. The new charge is a fresh authorization the issuer can decline, and the refund takes 5 to 10 business days to show on the buyer's statement.

    Confirm it

    Look for an exchange in your Stripe Dashboard as a full refund plus a second payment from the same customer within a few days.

    Fix

    Move only the difference: a partial refund when the new item costs less, a charge for the difference when it costs more, and nothing when the prices match.

  2. A difference under 50 cents can't be charged#

    A swap left the buyer owing $0.32, often a tax rounding difference, and the PaymentIntent was rejected.

    Stripe's minimum charge is $0.50 in USD, and similar minimums apply in other currencies. A small balance can't be collected as its own payment.

    Confirm it

    Compare the difference with Stripe's minimum for the charge currency before you create the PaymentIntent.

    Fix

    Write off small balances as a policy, and record the write-off on your order so the books still balance.

  3. There's no card on file to charge the difference#

    The buyer paid with Checkout or a Payment Link, and now you need $21.60 more for the upgrade without sending them through checkout again.

    Checkout doesn't save a one-time payment's card for later use unless the session set payment_intent_data.setup_future_usage. Saving it also needs terms and the buyer's consent for later charges. Incremental authorization only raises a payment that hasn't been captured yet, on IC+ pricing (others ask Stripe support), so it doesn't help after the sale settles.

    Confirm it

    Retrieve the original PaymentIntent and read setup_future_usage and customer. Both have to be set for an off-session charge.

    Fix

    Send the buyer a Checkout Session or Payment Link for the difference, or set setup_future_usage with consent text on future purchases. An off-session charge can still fail when the issuer asks for authentication, so keep the link as the fallback.

  4. Tax records still show the old item#

    The refund for the difference went through, but Stripe Tax reports still show the original item as sold, and the new item doesn't appear.

    A refund moves money and nothing else. With the custom Stripe Tax integration, you record each change yourself: a reversal for the item that came back and a new calculation and transaction for the item that went out. Stripe allows 30 partial reversals per sale and warns that partial line tax refunds make reports unreliable.

    Confirm it

    Find the Tax Transaction for the original sale and confirm a reversal exists for the returned line, plus a separate transaction for the replacement.

    Fix

    Record a reversal of the returned line by its amount and amount_tax, then calculate tax for the replacement and record it with a reference that ties both to the order.

  5. Nothing links the refund to the new payment#

    A month later, a buyer disputes the second charge, and nobody can find which order it belonged to.

    Stripe sees a partial refund on one PaymentIntent and a new PaymentIntent, with no exchange object joining them. Whatever ties them to the order and the item lives in your database and metadata.

    Confirm it

    Open the new payment in the Dashboard. If its metadata doesn't name the original PaymentIntent and the order, nobody can trace it without your database.

    Fix

    Write the order ID, the original PaymentIntent, and the swapped items into metadata on both the refund and the new PaymentIntent, and keep the exchange as a record in your own order tables.

On Flint, the exchange is one edit to the paid order

Flint is a payments API with orders built in, so the order knows its items and what each cost, and an exchange changes the order instead of stacking payments beside it. Preview the swap first. A preview changes nothing, so it needs no idempotency key:

cURL
curl -X POST https://api.withflintpay.com/v1/order-edit-previews \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "order_id": "ord_01KEZF7C00JBKMARG3P06Z224B",
    "remove_line_items": [
      {"order_line_item_id": "li_01KEZF7C004XP0V220YVMGQ354", "quantity": 1}
    ],
    "add_line_items": [
      {"type": "variant", "variant_id": "var_01KEZF7C00Q0Y1Z9G7F3J6V2DD", "quantity": 1}
    ]
  }'

Flint prices the crew coming off at what the buyer paid for it, discount and tax included, prices and taxes the hoodie, and nets them. The response is abridged:

JSON
{
  "data": {
    "order_id": "ord_01KEZF7C00JBKMARG3P06Z224B",
    "based_on_order_version": 7,
    "remove_line_items": [
      {
        "order_line_item_id": "li_01KEZF7C004XP0V220YVMGQ354",
        "quantity": 1,
        "removable_quantity": 1,
        "total_money": {"amount": 5184, "currency": "USD"},
        "refund_money": {"amount": 0, "currency": "USD"}
      }
    ],
    "add_line_items": [
      {
        "type": "variant",
        "variant_id": "var_01KEZF7C00Q0Y1Z9G7F3J6V2DD",
        "name": "Merino hoodie, Oat, L",
        "quantity": 1,
        "unit_price_money": {"amount": 6800, "currency": "USD"},
        "subtotal_money": {"amount": 6800, "currency": "USD"},
        "discount_money": {"amount": 0, "currency": "USD"},
        "tax_money": {"amount": 544, "currency": "USD"},
        "total_money": {"amount": 7344, "currency": "USD"}
      }
    ],
    "removed_total_money": {"amount": 5184, "currency": "USD"},
    "added_total_money": {"amount": 7344, "currency": "USD"},
    "refund_money": {"amount": 0, "currency": "USD"},
    "amount_due_money": {"amount": 2160, "currency": "USD"},
    "small_balance_adjustment_money": {"amount": 0, "currency": "USD"}
  },
  "request_id": "req_01KWM694EG9SNYD9JYR0SQVVP6"
}
Crew M for hoodie L on Flint
  • Hoodie addedadd_line_items[0].total_money
    $68.00 plus $5.44 tax
    $73.44
  • Crew taken offremove_line_items[0].total_money
    What the buyer paid for it
    −$51.84
  • Buyer owesamount_due_money
    $21.60

Show the buyer amount_due_money, then commit the same lists. With balance_due_behavior: "collect", Flint creates the edit as pending with a payment intent for exactly the balance:

cURL
curl -X POST https://api.withflintpay.com/v1/orders/ord_01KEZF7C00JBKMARG3P06Z224B/edits \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: exchange-ord-1042-crew-for-hoodie" \
  -d '{
    "expected_order_version": 7,
    "reason": "requested_by_customer",
    "balance_due_behavior": "collect",
    "expected_amount_due_money": {"amount": 2160, "currency": "USD"},
    "remove_line_items": [
      {"order_line_item_id": "li_01KEZF7C004XP0V220YVMGQ354", "quantity": 1}
    ],
    "add_line_items": [
      {"type": "variant", "variant_id": "var_01KEZF7C00Q0Y1Z9G7F3J6V2DD", "quantity": 1}
    ]
  }'
Shell
# The edit is pending with a payment intent for the $21.60.
# Charge the buyer's saved card while they're away:
curl -X POST https://api.withflintpay.com/v1/payment-intents/pi_01KEZF7C0050JFFB0HNCWWV1G3/confirm \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: confirm-exchange-ord-1042" \
  -d '{
    "payment_source": {
      "credential_type": "payment_method",
      "payment_method_id": "pm_1kmn0aExample",
      "customer_presence": "absent"
    }
  }'

When the payment succeeds, the edit becomes completed and Flint sends order_edit.completed; fulfill the hoodie then. Swap the crew for the cheaper tee instead, and the same call returns refund_money of 1728 and refunds $17.28 to the original payment. Swap it for the L at the same price, and nothing is charged or refunded. What Flint does in that one request:

  • One order, one ID. The crew comes off, the hoodie goes on, and the order keeps its ID, receipt history, and activity log. The edit stays readable at GET /v1/orders/{order_id}/edits, with exactly what came off, what went on, and the refunds it created.
  • Only the difference moves. No full refund and new sale, so no second authorization for the whole amount, and a refund for the difference goes back to the original payment.
  • Tax recalculated for what changed. The crew's tax comes back in proportion, the hoodie is taxed through the order's tax settings, and the tax already committed on other lines stays as it was.
  • Stock in the same step. Flint releases the crew's stock and commits the hoodie's, or refuses with 409 INVENTORY_INSUFFICIENT when it can't cover it.
  • Small balances waived. For USD orders, a balance under 50 cents, such as a tax rounding difference on an equal swap, needs no payment and shows in small_balance_adjustment_money.
  • Safe to retry. expected_order_version refuses a swap built on a stale order, expected_amount_due_money refuses a balance the buyer never saw, and the same Idempotency-Key never edits the order twice. An unpaid edit cancels itself after 24 hours and leaves the order as it was.
  • The buyer is told. Flint emails the buyer what changed and any refund due, and the order's activity log gets an order_edited row.

The edit a paid order guide covers shipping charges, failed refunds, and every refusal.

After delivery: an exchange on the Return

Once the crew has shipped, the buyer sends it back through a Return, and the exchange is the Return's resolution. pricing_basis: "original_price" carries the price the buyer paid over to a size swap of the same product, so the swap costs them nothing:

cURL
curl -X POST https://api.withflintpay.com/v1/return-resolutions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: exchange-ret-1042-size" \
  -d '{
    "return_id": "ret_1kmn0aExample",
    "expected_return_version": 4,
    "resolution_type": "exchange",
    "pricing_basis": "original_price",
    "line_items": [
      {"return_line_item_id": "retli_1kmn0aExample", "quantity": 1}
    ],
    "replacement_line_items": [
      {"type": "variant", "variant_id": "var_1kmn0bExample", "quantity": 1}
    ]
  }'

Confirm it with POST /v1/return-resolutions/{return_resolution_id}/confirm. The line's release timing decides when value moves: as soon as you confirm, or once the crew is handed to a carrier, arrives, or passes inspection. Then Flint creates the replacement order with the returned value applied to it. When that value covers the replacement, the order is paid; when the buyer chose something cheaper, a refund for the difference goes back to the original payment; when they owe more, buyer_payment_amount_money has the balance and a checkout session collects it:

Shell
# When the replacement costs more, send the buyer to pay the balance
curl -X POST https://api.withflintpay.com/v1/checkout-sessions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: checkout-retres_1kmn0a" \
  -d '{
    "type": "return_resolution",
    "return_resolution_id": "retres_1kmn0aExample",
    "return_url": "https://account.example.com/returns/ret_1kmn0aExample"
  }'

Restocking and return shipping fees come off the same arithmetic. Buyers can request an exchange and choose the variant they want in the self-serve return flow, and your team confirms it. The return resolutions guide covers pricing bases, tax on replacements, and failures.

Stripe and Flint exchanges, side by side

Stripe Refunds and PaymentIntentsFlint order edits and Return exchanges
Exchange objectNone; a refund and a payment you link yourselfAn order edit before shipping, a return resolution with resolution_type: "exchange" after
Working out the differenceYour arithmetic, from prices and tax you trackrefund_money or amount_due_money in a preview
New item costs moreA new PaymentIntent, off-session with a saved card, or a new checkoutbalance_due_behavior: "collect" and one payment intent for the balance
Balance under $0.50Below Stripe's minimum chargeWaived and recorded on USD orders
TaxA refund moves money only; record tax reversals yourselfRecalculated for the units that changed
StockNot trackedReleased and committed in the same request
Order historyMetadata you wrote on each payment and refundThe same order ID, with the edit and its refunds on it

Questions, answered

What is the difference between an exchange and a return?

In a return, the buyer sends the item back and gets their money back as a refund or store credit. In an exchange, the buyer sends the item back and gets a different one, such as another size, and money moves only for any price difference. Both start the same way, with the item coming back; they differ in what the buyer gets for it.

Does Stripe support exchanges?

No. Stripe has no exchange object. A refund takes a charge or PaymentIntent and an amount, and a new item needs a new payment. To process an exchange on Stripe, refund the difference when the new item costs less, charge the difference when it costs more, and keep the record of what was swapped in your own database.

How do I charge the price difference on Stripe?

Create a new PaymentIntent for the difference. If the original payment saved the card with setup_future_usage and the buyer agreed to later charges, confirm it off-session with the saved payment method. Otherwise, send the buyer a Checkout Session or Payment Link for the difference. Stripe's minimum charge is $0.50 in USD.

Does Stripe return its fee when I refund for an exchange?

No. Stripe's refund documentation says the processing fees from the original transaction aren't returned. That's why refunding the whole order and charging again costs a second fee; refund only the difference instead.

What should an exchange policy say?

The window to request an exchange, the condition items must be in, which items can't be exchanged, how price differences are handled, who pays shipping each way, and whether the replacement ships before or after the return arrives. Flint's free return policy generator writes one with exchanges and store credit included.

Is "Stripe exchange" about currency exchange?

Sometimes. When a charge's currency differs from your settlement currency, Stripe converts it at its exchange rate, and Stripe's pricing page lists the conversion fee. The other meaning is swapping an item a buyer already paid for, which takes a refund or a new charge for the price difference.

How do I exchange an item with Flint?

Before the item ships, send POST /v1/orders/{order_id}/edits with remove_line_items for the old item and add_line_items for the new one. Flint refunds the difference or, with balance_due_behavior collect, charges it, and recalculates tax for what changed on the same order. After delivery, create a return resolution with resolution_type exchange, and Flint settles the difference and creates the replacement order.

What can't a Flint order edit change?

Units already in a fulfillment, orders created by a subscription, a Return, or an invoice, and disputed payments. Gift cards, digital items, services, and subscribe-and-save lines can't be added. Use a Return exchange for items that shipped, and sell the others on a new order.

Sources

Accessed December 2, 2026.