Skip to main content
Copy for LLM

Refund a payment

A paid online payment is refunded at the acquirer: the money goes back to the customer's card or wallet, and Boundless records the refund only once the acquirer confirms it. Refunds are available from the Boundless dashboard, and over the API to a key that has been given the refund permission.

The refund permission​

An API key takes payments in your name; refunding them is a separate permission, because it moves money out. An administrator of your business grants it in the Boundless dashboard — Can refund payments on the key — either when the key is created or later, without changing the key's value. A key cannot grant itself the permission. A refund request from a key without it is refused with 403.

Refund in full​

curl -X POST https://api-live.kcpboundless.com/api/transactions/01a18691-b545-7952-ba41-661d336d894f/refund \
-H "X-API-Key: bndl_live_..." \
-H "Content-Type: application/json" \
-d '{ "refundReference": "RMA-2026-0117" }'

Refunds everything left on the payment. The body is optional; refundReference is your own reference for the refund, kept on the payment's history.

Refund in part​

curl -X POST https://api-live.kcpboundless.com/api/transactions/01a18691-b545-7952-ba41-661d336d894f/partial-refund \
-H "X-API-Key: bndl_live_..." \
-H "Content-Type: application/json" \
-d '{ "amount": 10.00, "refundReference": "RMA-2026-0117" }'
FieldRequiredDescription
amountyesDecimal amount in the payment's currency, greater than zero, with no more decimal places than the currency has.
refundReferenceoptionalYour own reference for the refund.

A partial refund may be repeated until the payment is fully refunded. The amount can never exceed what is left, counting refunds still on their way.

What comes back​

The response is the payment in its resulting state. Three outcomes:

The acquirer saidPayment after a full refundPayment after a partial refund
RefundedREFUNDED; refundedAmount is the full amountStatus unchanged; refundedAmount grows
Taken, not yet doneSENT_FOR_REFUNDStatus unchanged; pendingRefundAmount shows what is on its way
Refused409 with the acquirer's reason; the payment is unchanged409; the payment is unchanged

A refund the acquirer has taken but not finished is confirmed by Boundless on its own, every half minute, until it is done. You do not have to ask again: the payment moves to REFUNDED (or refundedAmount grows) and you receive PAYMENT_REFUNDED. If the acquirer then fails it, a full refund leaves the payment REFUND_FAILED — from which it can be refunded again — and you receive PAYMENT_REFUND_FAILED; a partial refund leaves the payment as it was.

{
"id": "01a18691-b545-7952-ba41-661d336d894f",
"status": "CAPTURED",
"amount": 42.50,
"refundedAmount": 10.00,
"pendingRefundAmount": 5.00,
"currency": "SGD"
}
  • refundedAmount — refunds the acquirer has confirmed.
  • pendingRefundAmount — refunds the acquirer has taken but not yet confirmed. It is held back from any further refund.

Rules​

  • Only a paid payment can be refunded — CAPTURED or later. A waiting page is cancelled instead; a refused, cancelled or expired payment took no money.
  • One refund at a time counts. While a refund is on its way, the amount it speaks for is not available to another refund. Wait for the webhook or read the payment before refunding more.
  • A refund that timed out is not lost. If your request gets no answer, Boundless keeps the refund as on its way, looks it up at the acquirer, and sends it again only if the acquirer never received it. Do not resend yourself; read the payment.
  • The webhook is the confirmation. PAYMENT_REFUNDED means the acquirer confirmed the money is going back. Tell the customer then, not on the 200.

Events​

EventMeaning
PAYMENT_SENT_FOR_REFUNDA full refund is at the acquirer, not yet confirmed.
PAYMENT_REFUNDEDThe acquirer confirmed a refund; refundedAmount in the payload is the total refunded so far.
PAYMENT_REFUND_FAILEDThe acquirer refused or failed a refund. Nothing went back.