Return resolutions
Approving a Return says merchandise may come back. A resolution says what the buyer gets for it: money back, store credit, different merchandise, the same merchandise again, or nothing. You preview it, create it, and confirm it, and Flint then moves the money and creates the orders, waiting for the merchandise first when the decision says to.
When a return policy resolves a line automatically, Flint creates and confirms a refund, store_credit, or no_monetary_action resolution for you (see What automatic decides). They follow the same lifecycle as the ones you create.
Choose an outcome#
resolution_type | What the buyer gets |
|---|---|
refund | Money back on the original payment. Gift card value goes back to the original card unless you choose new gift cards |
store_credit | The returned value on new Flint gift cards instead of the original payment. See Store credit |
exchange | Different merchandise, with the difference refunded or paid by the buyer |
replacement | The same merchandise sent again, settled the same way as an exchange |
no_monetary_action | Nothing. Use it when goods come back and no value is owed |
correction | An adjustment to a resolution that already settled. See Fixing one after it settled |
Every type except correction names the Return lines it covers in line_items, each with a return_line_item_id and a whole-number quantity, up to 100 lines. The quantity must be approved on the Return and not already claimed by another resolution.
Preview, create, confirm#
Confirmed is not the same as paid#
A confirmed resolution can stay pending for days, and that is usually correct. execution_blockers says what it waits for. Each blocker has a code, and line gates also carry the return_line_item_id.
| Blocker | Cleared by |
|---|---|
handoff_pending | The buyer handing the parcel to a carrier |
receipt_pending | The warehouse recording the merchandise arriving |
inspection_pending | An inspection and its acceptance decision |
manual_release_pending | A call to /release |
buyer_payment_pending | The buyer paying an exchange balance |
refund_pending | The Refund settling |
replacement_order_pending | Flint creating the replacement Order |
fulfillment_pending | The replacement Order's fulfillment_status reaching fulfilled or not_applicable |
The first four come from release_timing, which the decision sets on each line and the resolution's line_items echo. It gates every resolution type, including exchanges and replacements, and it is how you avoid paying out for goods that never arrive.
release_timing | The resolution runs |
|---|---|
after_approval | As soon as you confirm it |
after_handoff | When the buyer hands the merchandise to a carrier |
after_receipt | When the merchandise arrives |
after_inspection | When an inspection accepts it, or on arrival when the line's inspection is waived |
manual | When you call /release |
The gate counts units. A resolution waits until enough of the line's units have been handed off, received, or accepted to cover it and every resolution released before it on that line, up to the line's return_required_quantity.
A resolution held by manual timing is requires_action with action_reason: manual_release, and supported_actions lists release. Release it once you're satisfied:
curl -X POST https://api.withflintpay.com/v1/return-resolutions/retres_1kmn0aExample/release \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: release-retres_1kmn0a" \
-d '{ "reason": "merchant_approved" }'
Resolution status#
- proposed moves to pending on confirm
- proposed moves to canceled on cancel
- pending moves to requires_action on waits on a person
- requires_action moves to pending on person acts
- pending moves to fulfilled on value delivered
- pending moves to failed on effect fails
- failed moves to pending on retry
- failed moves to canceled on cancel
- pending moves to canceled on cancel before an effect starts
- requires_action moves to canceled on cancel before an effect starts
Two cases skip pending when you confirm. A resolution held by manual timing goes straight to requires_action, and a no_monetary_action resolution with nothing to wait for goes straight to fulfilled. A pending or requires_action resolution can also be canceled until it starts an effect, as Canceling an unpaid exchange describes.
status on return resolutionsupported_actions lists what you can do now: confirm, cancel, release, retry, and checkout_session. It's empty while the parent Return isn't open, except for checkout_session. Check it before calling an action instead of calling to find out.
partially_fulfilled isn't a resolution status. Only the Return's resolution_status reports it, when value was delivered on some lines and not others. See The value.
Fees#
Restocking and return shipping charges aren't separate objects. They are adjustments on the resolution, so they stay in the same arithmetic as the refund.
adjustment_type | Usual value_effect |
|---|---|
restocking_fee | deduction |
return_shipping_fee | deduction |
other_fee | deduction |
goodwill_credit | credit |
price_correction | Either |
other | Either |
Each adjustment needs adjustment_type, value_effect, assessed_amount_money, applied_amount_money, and a reason. status defaults to applied. To waive a fee and keep a record of it, send status: "waived" with applied_amount_money of zero and a waiver_reason. applied_amount_money can't exceed assessed_amount_money.
The amounts combine one way for every type:
returned_total_money + credit_adjustment_money - deduction_money - replacement_total_money
A positive result is buyer_refund_amount_money. A negative one is buyer_payment_amount_money, which only an exchange or replacement can have. A deduction scoped to a return_line_item_id can't exceed that line's returned total, and all deductions together can't exceed the returned total plus credits. Either fails with 400 INVALID_REQUEST, detail code INVALID_VALUE, naming the adjustment's applied_amount_money.amount. A resolution carries at most 50 adjustments.
When a policy resolves a line automatically, Flint adds the policy's fees for you with reason: "return_policy". On a resolution you create yourself, send the fees you want to charge; the Return line's eligibility.policy_adjustment_proposals lists what its policy proposes. An adjustment with reason: "return_policy" needs the return_line_item_id of a line that a policy covers.
The Return's financial_summary reports the totals separately as deduction_money and credit_adjustment_money, apart from returned_total_money and refunded_money, so nothing is netted out of sight. Updating adjustments covers keeping, adding, and removing them with PATCH.
Store credit#
A store_credit resolution refunds the returned value onto new Flint gift cards instead of the original payment. It is priced, held by release_timing, and confirmed exactly like a refund. Confirming creates an ordinary linked Refund that issues the new cards and makes no processor refund, so you keep the cash and the original processing fee isn't returned. buyer_refund_amount_money is the value issued on the new cards. Refund to store credit covers what it changes on the order and your balance.
curl -X POST https://api.withflintpay.com/v1/returns/ret_1kmn0aExample/resolutions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: resolution-ret_1kmn0a-store-credit" \
-d '{
"expected_return_version": 4,
"resolution_type": "store_credit",
"line_items": [
{ "return_line_item_id": "retli_1kmn0aExample", "quantity": 1 }
]
}'
Store credit is available when every payment on the order that still has refundable value can fund it:
- Gift card payments qualify.
- Card, Apple Pay, Google Pay, and Link payments qualify when they succeeded, are in USD, and have no open or lost chargeback.
- Affirm and ACH debit payments don't qualify.
Flint checks this when you create or confirm a store credit resolution, and when a decision or process call resolves a line automatically. A refused request returns 409 ACTION_NOT_ALLOWED with reason: store_credit_unavailable, and details[0] names the order. Eligibility previews leave store_credit out of allowed_resolution_types for an order that can't fund it, so a policy that allows store credit offers it only where the order supports it.
If the order stops qualifying after you confirm, for example because a chargeback opened, the resolution fails with failure_code: store_credit_unavailable. Retrying can't fix that. Cancel the resolution, then create a refund resolution to return the value to the original payment.
Where gift card value goes#
A refund, an exchange, and a correction choose where the part the buyer paid by gift card goes. gift_card_refund_destination takes original, the default, which credits the gift card that paid, or new_gift_card, which issues that value on new gift cards. Value paid any other way goes back to the original payment either way.
curl -X POST https://api.withflintpay.com/v1/returns/ret_1kmn0aExample/resolutions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: resolution-ret_1kmn0a-new-card" \
-d '{
"expected_return_version": 4,
"resolution_type": "refund",
"gift_card_refund_destination": "new_gift_card",
"line_items": [
{ "return_line_item_id": "retli_1kmn0aExample", "quantity": 1 }
]
}'
| Resolution | gift_card_refund_destination |
|---|---|
refund, exchange | Accepted and echoed on the resolution |
correction of anything but store_credit | Accepted and echoed on the resolution |
store_credit, and a correction of it | Rejected. Value always goes on new gift cards |
replacement, no_monetary_action | Rejected |
Send it on create, on a resolution in POST /v1/returns/{return_id}/process, on PATCH while the resolution is proposed, or on retry after a failed refund. A rejected field returns 400 INVALID_REQUEST with a NOT_ALLOWED detail whose conflicting_fields lists resolution_type and gift_card_refund_destination.
Flint never moves gift card value to new cards on its own. When the original card is closed or can't take the amount within its balance cap, the resolution fails with gift_card_refund_destination_required and you choose.
Delivering the gift card#
New gift cards are bearer credentials, so the buyer needs each card's code. Who sends it follows your customer_email_delivery.returns setting:
| Setting | Who delivers the card |
|---|---|
flint_sends, the default | Flint emails each new card to the Return's buyer email once the Refund succeeds |
merchant_sends, or a Return with no buyer email | You do |
This covers every new card a Return issues: store credit, and gift card value sent to new_gift_card. Find the Refund through the resolution's refund_ids; its tender_allocations[].destination_cards lists each card's gift_card_id. To deliver a card yourself, call POST /v1/gift-cards/{gift_card_id}/rotate-code, which returns a new code once, or POST /v1/gift-card-notifications to have Flint email it to a recipient you choose. Both need the commerce.gift_cards.secrets.write scope. See Gift cards.
The resolution is fulfilled once the value is on the new cards. The email doesn't hold it up, and an email that fails leaves it fulfilled.
Choose replacement merchandise#
An exchange or a replacement lists what the buyer gets in replacement_line_items, up to 100 lines, and needs a pricing_basis that says how the merchandise is priced. Each line has a type that decides how it names the merchandise:
type | Send |
|---|---|
variant | variant_id and quantity |
bundle | bundle_id and quantity |
custom | name, unit_price_money, quantity, and fulfillment, for merchandise outside your catalog. description and sku are optional |
pricing_basis | Catalog lines are priced at |
|---|---|
original_price | What the buyer paid for the same variant or bundle on a returned line in this resolution. Each catalog line must match one |
current_price | The variant's or bundle's current catalog price |
merchant_agreed_price | The unit_price_money you send on every replacement line |
custom lines are always priced at their own unit_price_money.
Custom replacements use the same fulfillment input as custom order lines. Send {"requirement":"none"} when nothing is delivered. For example:
{
"type": "custom",
"name": "Replacement service credit",
"quantity": 1,
"unit_price_money": { "amount": 2500, "currency": "USD" },
"fulfillment": { "requirement": "none" }
}
Send fulfillment on custom lines in previews, creates, process requests, and replacement collection PATCHes, including lines kept by return_replacement_line_item_id. Catalog replacements take fulfillment requirements from their catalog profile.
Replacement orders inherit the original Order's inventory_routing_source. They do not route from the Return's receiving location or choose a fallback source. If the original Order has no routing source and a replacement tracks inventory, preview, create, and process return 409 ACTION_NOT_ALLOWED with reason configuration_required; the error names the original Order. Set its inventory_routing_source before trying again. Stock availability is checked when inventory is reserved for collection or fulfillment, following the inherited source's routing rules.
curl -X POST https://api.withflintpay.com/v1/returns/ret_1kmn0aExample/resolutions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: resolution-ret_1kmn0a-exchange" \
-d '{
"expected_return_version": 4,
"resolution_type": "exchange",
"pricing_basis": "current_price",
"line_items": [
{ "return_line_item_id": "retli_1kmn0aExample", "quantity": 1 }
],
"replacement_line_items": [
{ "type": "variant", "variant_id": "var_1kmn0bExample", "quantity": 1 }
]
}'
A line without type returns 400 INVALID_REQUEST with param naming it, such as replacement_line_items[0].type. A field from another type, such as bundle_id on a variant line, returns a NOT_ALLOWED detail. Send the same lines on previews and on a resolution in POST /v1/returns/{return_id}/process. On PATCH, every line sends type, including a line you keep by its return_replacement_line_item_id.
The resolution prices the replacement Order, tax included, in replacement_total_money. An exchange for something cheaper refunds the difference through a linked Refund. An exchange for something more expensive leaves a balance the buyer pays. Exchanging a $54.00 return for a $70.20 jacket leaves $16.20, which the resolution reports as buyer_payment_amount_money of 1620.
A customer session previews only catalog merchandise: variant and bundle lines with an ID and quantity. name, description, sku, unit_price_money, and pricing_basis are merchant-only. See Let the buyer compare outcomes.
When the buyer owes money#
When an exchange leaves a balance, Flint creates the replacement Order and applies the returned value to it, links a Return-scoped PaymentIntent to the resolution, and holds buyer_payment_pending until the buyer pays. While the payment needs the buyer, the resolution is requires_action with action_required_by: buyer and action_reason: buyer_payment, and supported_actions lists checkout_session.
Launch a checkout for the balance:
curl -X POST https://api.withflintpay.com/v1/return-resolutions/retres_1kmn0aExample/checkout-sessions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: checkout-retres_1kmn0a" \
-d '{
"return_url": "https://account.example.com/returns/ret_1kmn0aExample"
}'
The route returns 201 when it creates the checkout session and 200 when it returns the open one again. Both return the session in data, with its hosted url and a checkout_auth_token among its fields. Send the buyer to url. A retry with the same Idempotency-Key repeats the first response, including its status. With a customer session, launch the same checkout from POST /v1/me/return-resolutions/{return_resolution_id}/checkout-sessions.
The body is optional. return_url brings the buyer back after paying. It must be an HTTPS address of your customer account: /{merchant_id} on Flint's account host, your active custom account domain, or the host of your customer_account.merchant_account_url. Anything else fails with 400 INVALID_REQUEST on return_url. On hosted checkout it is the same as redirects.success_url, so keep them consistent if you send both.
The balance is fixed. The checkout doesn't quote or select delivery and adds no shipping charge, and the replacement Order's total doesn't change. You arrange delivery yourself with fulfillments. For a replacement that ships or is delivered locally, Flint copies the original Order's delivery address when it has one, without the original delivery selection, method, or charge. When it has none, give the destination as recipient when you create the fulfillment.
This route is the only way to collect a return balance. POST /v1/checkout-sessions for the replacement Order fails with 409 ACTION_NOT_ALLOWED and reason return_checkout, and details[0].current_resource names the resolution to launch from.
On the replacement Order, return_credit_settlements lists the value applied from the returned items, each with amount_money, return_id, return_resolution_id, and created_at. That credit is already included in settlement_amounts.paid_money, so show it on the receipt as return credit alongside the buyer's payment. Written-off invoice debt doesn't fund an exchange: the source order's settlement_amounts.written_off_money reduces what the buyer owed but adds no paid value to carry over.
Collect the balance in your own checkout#
Send "surface": "embedded" to collect the balance in a checkout you build. An embedded session takes payment_return_url instead of redirects, and needs it when the session offers Affirm. Send page_origin to support a gift card challenge.
curl -X POST https://api.withflintpay.com/v1/return-resolutions/retres_1kmn0aExample/checkout-sessions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: checkout-retres_1kmn0a-embedded" \
-d '{
"surface": "embedded",
"page_origin": "https://shop.example.com",
"payment_return_url": "https://shop.example.com/returns/ret_1kmn0aExample/paid"
}'
The response has no hosted page, so url is omitted. Pass checkout_auth_token to your checkout, read the session with it for its payment_collection, and pay the Order in order_id, as Build your own checkout describes.
A resolution has one open checkout session at a time. A request for the open session's surface returns it with a new credential and 200. A request for the other surface replaces the session when no payment is in progress on it, and fails with 409 ACTION_NOT_ALLOWED and reason in_progress when one is.
When the payment fails#
If the buyer's payment is canceled or expires, the resolution becomes failed with failure_code: payment_failed, and supported_actions lists retry:
curl -X POST https://api.withflintpay.com/v1/return-resolutions/retres_1kmn0aExample/retry \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: retry-retres_1kmn0a-payment" \
-d '{ "reason": "payment_method_updated" }'
Retrying starts a new payment attempt. Earlier PaymentIntent IDs stay on payment_intent_ids, and a late event from an abandoned attempt can't settle the new one. Launch /checkout-sessions again for the new attempt.
Exchanges and replacements wait for fulfillment#
An exchange or replacement is fulfilled only when its replacement Order is. The fulfillment_pending blocker names that Order in linked_resource. The resolution stays pending, and the Return stays open with a resolution_pending completion blocker, until the Order's fulfillment_status is fulfilled or not_applicable. An Order with nothing to fulfill counts at once. Otherwise every unit's fulfillment must be completed: delivery for a shipment with packages, the handover for pickup. Report delivery with package actions, or send complete on the fulfillment when you don't track packages. return.completed arrives after the Order is fulfilled, not when it is created.
Fulfillment can't start until the replacement Order is paid:
| Replacement Order | How it becomes paid |
|---|---|
| The buyer owes a balance | The buyer pays it through the checkout session. The resolution holds buyer_payment_pending and fulfillment_pending together, then only fulfillment_pending once the payment succeeds |
| The returned value covers the whole total | Flint marks it paid when it applies the return credit. No call is needed |
| The total is zero | Call POST /v1/orders/{order_id}/pay on the replacement Order with no payment_source. A zero balance moves no money. Until you do, nothing can be fulfilled and the Return stays open |
If the replacement Order's fulfillment is canceled, the goods won't be sent: the resolution becomes failed with failure_code: replacement_fulfillment_canceled, and the Return shows a resolution_failed completion blocker. Flint treats the Order as canceled when its fulfillment_status is canceled, or closed because some units were canceled and the rest completed. A canceled fulfillment can't be undone. To send the goods another way, such as from another warehouse, fail the fulfillment with release_quantity: true and create a new one instead of canceling it. See Cancel, fail, and try again.
Canceling an unpaid exchange#
You can cancel an exchange whose balance is unpaid even after Flint has created its replacement Order, as long as creating that Order is the only effect that completed. The Order must have no successful or in-progress payment, fulfillment, refund, or other use. A PaymentIntent still waiting for a payment method doesn't block it.
curl -X POST https://api.withflintpay.com/v1/return-resolutions/retres_1kmn0aExample/cancel \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: cancel-retres_1kmn0a" \
-d '{ "reason": "expired" }'
Canceling ends the Order's open checkout session, reverses its return credit, closes the replacement Order with closed_reason: "return_resolution_canceled", and cancels the resolution and its effects together. The buyer's checkout link stops working, and the Return no longer asks them to pay that balance. The returned quantity and value become available for another resolution. Repeating a successful cancellation doesn't reverse the credit again.
reason is required: buyer_request, merchant_request, duplicate, expired, created_in_error, or other, with an optional reason_message. If a payment succeeded or is in progress, a fulfillment started, or another effect completed, canceling returns 409.
Other resolutions follow the general rule: you can cancel one until it starts an effect that can't be withdrawn, and a failed one only when it never created a Refund, PaymentIntent, or Order. A resolution waiting on fulfillment_pending has already created its Order, so it offers no cancel unless it is an unpaid exchange as above. Cancellation reasons covers who can read the reason afterward.
When a resolution fails#
A resolution that can't finish becomes failed with a failure_code and a failure_message. The code tells you whether retrying can help. When it can, supported_actions includes retry. When it can't, retry is missing, and POST /v1/return-resolutions/{return_resolution_id}/retry returns 409 ACTION_NOT_ALLOWED with current_status: failed.
failure_code | What happened | Retry | What to do |
|---|---|---|---|
gift_card_refund_destination_required | The original gift card is closed, or the amount would pass its balance cap | Yes | Retry with gift_card_refund_destination: "new_gift_card". See below |
store_credit_unavailable | The order's payments can no longer fund store credit | No | Cancel the resolution, then create a refund resolution |
refund_creation_failed | Flint couldn't create the Refund after retrying | Yes | Retry |
refund_failed | The Refund was created and failed | Yes | Read failure_message, fix the cause, then retry. Retry creates a new Refund |
refund_line_value_unavailable | Another refund already covered part of the line, so this one can't be paid | No | Cancel the resolution, then resolve fewer units or choose an outcome without a refund |
payment_intent_creation_failed | Flint couldn't create the buyer's PaymentIntent after retrying | Yes | Retry. It resumes the payment |
payment_failed | The buyer's payment was canceled or expired | Yes | Retry, then launch the checkout session again |
replacement_order_creation_failed | Flint couldn't create the replacement Order after retrying | Yes | Retry |
replacement_fulfillment_canceled | The replacement Order's fulfillment was canceled or closed, so the goods won't be sent | No | Avoid it by failing a fulfillment you want to replace instead of canceling it |
resolution_effect_failed | Another execution failure | Yes | Retry, and contact support if it repeats |
Retrying replays the failed effect, so retrying refund_line_value_unavailable or store_credit_unavailable would only ask for the same impossible refund. Cancel those instead, which releases the quantity for a new resolution. New codes can be added, so show failure_message for a code you don't recognize and don't retry it automatically. The failure code reference covers canceling a failed resolution that already created a Refund.
retry takes a required reason: dependency_recovered, payment_method_updated, operator_retry, or other. Read it later from the Return's activities.
Recover a gift card that can't take the refund#
A Refund can't credit a closed gift card, or one the amount would push past its balance cap. Flint doesn't issue new cards in its place without your say, so the resolution fails at once with failure_code: gift_card_refund_destination_required. Retry with the new destination:
curl -X POST https://api.withflintpay.com/v1/return-resolutions/retres_1kmn0aExample/retry \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: retry-retres_1kmn0a-new-card" \
-d '{
"reason": "operator_retry",
"gift_card_refund_destination": "new_gift_card"
}'
Flint saves the destination on the resolution before it starts the new attempt, so a later retry keeps it. The gift card value goes on new cards, the rest goes back to the original payment, and the new cards are delivered like store credit. Retry takes the field only for the types that take it on create, and only when the failed step is the refund. Otherwise it returns 400 INVALID_REQUEST with a NOT_ALLOWED detail on gift_card_refund_destination.
Fixing one after it settled#
Confirmed money movements are never edited backward. To change an outcome that already happened, reopen the Return and add a correction resolution that names the fulfilled resolution it corrects.
Reopen the completed Return:
curl -X POST https://api.withflintpay.com/v1/returns/ret_1kmn0aExample/reopen \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: reopen-ret_1kmn0a-correction" \
-d '{ "reason": "correction_required" }'
Then create the correction:
curl -X POST https://api.withflintpay.com/v1/returns/ret_1kmn0aExample/resolutions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: correction-retres_1kmn0aOriginal" \
-d '{
"resolution_type": "correction",
"corrects_return_resolution_id": "retres_1kmn0aOriginal",
"adjustments": [
{
"adjustment_type": "price_correction",
"value_effect": "credit",
"status": "applied",
"assessed_amount_money": { "amount": 500, "currency": "USD" },
"applied_amount_money": { "amount": 500, "currency": "USD" },
"reason": "manual_correction"
}
]
}'
A correction is adjustments only, with at least one applied adjustment above zero. line_items, replacement_line_items, and pricing_basis are rejected, because a correction adjusts value instead of deciding again what came back. Its target must be fulfilled and belong to the same Return.
A correction pays out like the resolution it corrects. A correction of store_credit issues its credit on new gift cards and rejects gift_card_refund_destination. Any other correction refunds the original payment and takes its own gift_card_refund_destination for the part paid by gift card.
A net credit creates an ordinary linked Refund once confirmed. A deduction can reduce that credit to zero, but a correction can't leave the buyer owing money: a buyer pays through a checkout, and a correction has no order to check out.
Confirm the correction, wait for it to reach fulfilled, then complete the Return again with POST /v1/returns/{return_id}/complete. Reopening sets the Return's completion_mode to manual, so it doesn't complete on its own. To list every correction of a resolution, call GET /v1/return-resolutions?corrects_return_resolution_id=retres_1kmn0aOriginal.
How this lands elsewhere#
A resolution that refunds, including store credit and the refunded difference on an exchange, creates a real Refund on the same order, drawn from the same refundable balance and returned by the ordinary refund endpoints. It carries return_id and return_resolution_id, which are also filters on GET /v1/refunds; refunds you create directly carry neither. For store credit and for gift card value sent to new cards, the Refund's tender_allocations report destination: "new_gift_card" and the cards in destination_cards. Refund reads never include gift card codes, so deliver the card as above. A refund that the processor or your balance rejects is still recorded and linked, with status: "failed" and a failure_reason, and its amount is refundable again. See When a refund fails.
The Refund's reason comes from the Return lines' return_reason_handle:
| Return reason | Refund reason |
|---|---|
defective | defective_product |
wrong_item | wrong_item_shipped |
too_small, too_large, damaged_on_arrival | not_as_described |
arrived_late | arrived_too_late |
changed_mind | customer_changed_mind |
no_longer_needed | requested_by_customer |
other, a reason you defined, or lines with different reasons | other |
For the buyer's own wording, read the Return line, not the Refund.
Exchanges and replacements create a real Order, linked as replacement_order_id, which is fulfilled and shipped like any other. To track those orders from a list, call GET /v1/return-resolutions?resolution_type=exchange&expand=replacement_order: each row with a replacement_order_id carries the order summary as replacement_order. See Expand the replacement order in the list.
These events report a resolution's progress:
