Create a refund
/v1/refundsRefunds can only be issued for charges with status: success. Partial refunds reduce the remaining refundable balance.
Body parameters
charge_referencestringrequiredThe reference of the original charge.
amountintegeroptionalAmount to refund in kobo. Defaults to the full remaining refundable amount.
reasonstringoptionalFree-text reason. Shown in dashboard.
metadataobjectoptionalArbitrary key/value pairs for your own bookkeeping.
Response
200idstringTagPay-assigned refund ID.
charge_referencestringReference of the original charge.
amountintegerRefunded amount in kobo.
statusenum<'pending' | 'success' | 'failed'>Refund status.
created_atstringISO-8601 timestamp.
Errors
NOT_FOUND404No charge with that reference.REFUND_EXCEEDS_BALANCE400Refund amount exceeds the remaining refundable balance.CHARGE_NOT_REFUNDABLE400Charge has not succeeded yet, or is older than 90 days.