Refunds
Give back all or part of a paid payment to the customer.
A paid payment is never undone. To give money back, create a refund. Refunds are made through the API; the dashboard shows them on the payment.
Create a refund
POST /v1/payments/{id}/refunds with an Idempotency-Key header.
| Field | |
|---|---|
reason | Required. 1 to 256 characters. |
amount | Optional. Whole rupiah. Leave it out to refund everything that is left. |
curl https://pay.piti.id/v1/payments/pay_8Fq2.../refunds \
-H "Authorization: Bearer lbp_test_xxxxxxxx" \
-H "Idempotency-Key: refund-1042-1" \
-H "Content-Type: application/json" \
-d '{ "amount": 50000, "reason": "Item out of stock" }'{
"id": "rf_4kT9...",
"object": "refund",
"payment_id": "pay_8Fq2...",
"mode": "test",
"currency": "IDR",
"amount": 50000,
"reason": "Item out of stock",
"status": "pending",
"created_at": "2026-11-30T04:00:00Z",
"completed_at": null
}If the answer did not reach you, send the same request again with the same Idempotency-Key. The refund is never made twice. See Idempotency.
Partial refunds
- You can make several refunds for one payment, until they add up to the payment's
amount. - The payment's
refunded_amountgrows each time a refundsucceeded. - Once the whole
amountis refunded, the payment's status becomesrefunded. - A refund still
pendingalready counts, so the same money cannot be refunded twice.
At most the amount is returned, not the total. If the customer paid a VA fee, that fee is not returned. Our fee for the payment is not returned either.
Your balance must cover it
A refund is paid from your unsettled balance: money from your payments that is not in a settlement yet, less refunds still in progress. If it is not enough, you get 422 insufficient_balance. Wait for new payments, or contact us.
While a refund is in progress, your settlement waits until it is done. See Balance & settlements.
Refund statuses
status | Meaning | Webhook |
|---|---|---|
pending | Being processed. | |
succeeded | The money was returned. completed_at is set. | refund.succeeded |
failed | The refund was refused. completed_at is set. The amount can be refunded again. | refund.failed |
The webhook data is the refund object. See Webhooks.
Any paid payment can be refunded, QRIS or virtual account. Our team returns the money to the buyer by bank transfer, so a live refund stays pending until the transfer is done. You get refund.succeeded or refund.failed when it is done.
List a payment's refunds, oldest first, with GET /v1/payments/{id}/refunds.
What cannot be refunded
| Error | When |
|---|---|
409 not_refundable | The payment is not paid (pending, expired, failed), is already fully refunded, or our team is checking it (review_reason is set; contact us). |
422 invalid_amount | amount is more than what is left to refund. |
400 invalid_amount | amount is not whole rupiah. |
400 invalid_request | reason is empty or over 256 characters. |
422 insufficient_balance | Your unsettled balance does not cover it. |
404 not_found | No such payment, or it belongs to another app, mode or business. |
In the sandbox
With an lbp_test_ key, QRIS refunds are succeeded at once. Test VA refunds stay pending. See Testing.