Refunds are made from the payment itself. PaymentHooks sends the refund to the gateway that charged the customer, so the money goes back to the original payment method.
Issue a refund
- 1Open Payments > Payments and click the payment.
- 2Click Issue Refund. The drawer shows the amount paid and the maximum you can still refund.
- 3Enter the refund amount. It starts at the full refundable amount; lower it for a partial refund.
- 4Enter a reason. It is required.
- 5Click Confirm Refund.
The amount field is in USD. The gateway is asked to refund in the currency the customer actually paid, scaled in proportion to the original charge. For example, refunding half of a payment made in INR refunds half of the INR amount.
Partial and repeated refunds
You can refund a payment more than once until the full amount is refunded. The Refund Summary card on the payment shows the refundable amount, the original amount and what was already refunded. When everything is refunded, the payment's status changes to refunded.
After the refund
- The customer is emailed a refund confirmation with a refund PDF.
- The payment's receipt link keeps working. The receipt page and its PDF still show what was paid, marked
Partially refundedorRefunded, with the amount refunded and the date of the last refund in the currency the customer was charged, and the net paid. Only processed refunds are shown; a pending one appears once the gateway completes it. A payment lost in a dispute is markedCharged backthe same way. - Some gateways accept a refund and complete it later (for example Stripe). The refund is then shown as
Pendingand its amount already counts as refunded; when the gateway finishes it, it moves toProcessedand the customer is emailed, or toFailedand the amount becomes refundable again. - If the gateway rejects the refund, nothing is refunded, the refund is marked failed with the gateway's message, and you are emailed that the customer was not refunded.
- If part of the payment was paid with the customer's credit balance, that part is returned to their credit balance instead of the gateway.
All refunds are listed under Finance > Refunds, with tabs for All, Pending, Processed and Failed.
Refunds made in the gateway's dashboard
A refund you make directly in Stripe, Razorpay, PayPal, Square or Cashfree is recorded from that gateway's refund webhook: it appears under Finance > Refunds with the gateway's refund ID, amount, currency, status and reason, the payment's refunded amount is updated, and the customer is emailed the refund confirmation. A refund made in PaymentHooks is never recorded twice when its webhook arrives. For other gateways only the payment's refunded amount is updated.
To refund against an invoice and keep a credit document, issue a credit note with the refund outcome instead.
Refunds through the API: safe retries
Send an Idempotency-Key header with POST /api/v1/payments/:id/refund so a retried request can never refund twice. The key is reserved before the gateway is called. A second request with the same key while the first is still running gets 409 IDEMPOTENCY_IN_PROGRESS and refunds nothing; retry it with the same key once the first answers. A successful refund is replayed for that key for 24 hours (with the header x-idempotent-replayed: true); a failed refund frees the key, so the same key can be retried. A key left reserved by a request that crashed is freed after 2 minutes. The Issue Refund drawer in the dashboard does not need a key: it cannot be submitted twice while a refund is running.