SUCCEEDED Payment to the customer’s card.
It always uses the Payment currency and is processed asynchronously.
A Refund does not use shopper 3D Secure and never requires a browser redirect.
New Refunds can be created only for Payments using a
supported payment currency. An older
Payment in another currency remains readable, but a new Refund against it returns
422 currency_not_supported with param: payment_id; no Refund is created.
If refunds are not enabled for your account in the API key’s mode, a new Refund
returns 403 refunds_not_enabled and is not created. Contact
support to enable refunds.
Refund procedure
- Retrieve the Payment and confirm that it is
SUCCEEDEDand uses a supported payment currency. - Read its current
amount_refundable. - A full refund (
refund_type: FULL) returns the full original Payment amount when nothing has been successfully refunded and no other Refund is in progress. Returning the remaining amount after a succeeded partial Refund isPARTIAL. A failed partial Refund does not by itself prevent a laterFULLRefund. To return all currently available funds, setamounttoamount_refundable. - Create the Refund with a new deterministic
Idempotency-Keyand store the returnedrefund.id. GETthe parent Payment, select the object inrefunds[]whoseidmatches the stored ID, and keep retrieving the Payment until that Refund isSUCCEEDEDorFAILED.
Create a Refund
amount is required and expressed in minor units. reason is also required
and accepts at most 50 characters. merchant_reference is optional; when
supplied, it must be a 10-digit integer. Currency is inherited from the
Payment.
A Payment may have several partial Refunds. ecomm rejects a request that
exceeds the latest amount_refundable with
amount_exceeds_refundable.
A successful create request returns 201 Created and a Refund object. This
means the Refund exists; it does not mean that funds have already been returned.
In Live, the returned status is normally PENDING: ecomm submits the Refund
later, as When ecomm submits a Live Refund
describes. In Sandbox, ecomm submits the Refund before it responds, so the
returned status is PROCESSING, or FAILED when submission was definitively
rejected. A 201 response with FAILED is an object outcome, not an HTTP
request error.
Sandbox response
When ecomm submits a Live Refund
In Live, a Refund normally waits for the card clearing of the original Payment: ecomm submits it only after that clearing has completed. Clearing follows aSUCCEEDED Payment: it is the card network step that completes the charge on
the customer’s card, usually within hours. Until then the Refund stays
PENDING, so a Refund created soon after its Payment can stay PENDING for
hours.
- If the clearing of the original Payment does not happen, the customer was
not charged and there is nothing to refund. The Refund becomes
FAILEDwithfailure.codenot_permitted, and ecomm never submits it later. See Refund failures for itsfailure.messageand what to do next. - If the clearing has not completed 48 hours after the Payment succeeded,
ecomm reviews the Refund. It stays
PENDING, and ecomm still submits it when the clearing completes, or fails it as above when the clearing does not happen.
PENDING Refund. Sandbox Refunds do not wait for
clearing.
Refund statuses
A non-terminal Refund can remain unresolved; a timeout in your system is not
a confirmed failure. If it stays pending longer than expected, contact support
with the Payment ID, Refund ID, and
Request-Id. Do not issue a replacement
Refund while the original outcome is uncertain.
Track the Refund on its parent Payment
Subscribe to Refund webhooks for notifications. Use the parent Payment to reconcile the latest Refund status and remaining refundable amount, including when an event is delayed or arrives out of order.refunds[] array. The array also
lets you reconcile amount_refunded and amount_refundable before another
partial Refund.
Retry safely
Refund submission is different from payment preparation: one provider request creates and submits it. ecomm does not automatically resubmit an uncertain provider Refund request, including after a timeout or temporary provider error. Once the provider Refund ID is known, status reads can be retried safely. This does not change the merchant idempotency rules below; never use a new key to replace an unresolved Refund.- Same key and an equivalent effective request identity: ecomm returns the original Refund result, including an exact retry of a previously created Refund against an older Payment in another currency.
- Same key and a different effective request identity: ecomm returns
409 idempotency_key_reused. - Original request still being processed: ecomm returns
409 idempotency_key_in_use; wait briefly, then retry with the same key and an equivalent effective request identity. - A distinct Refund required by a new business decision: use a new key after
retrieving the latest
amount_refundable.