Refund a payment
Refund all or part of a prior SUCCESS collection (merchant → customer).
Credits the original payer’s SIM and debits the merchant float. No
commission is taken — the merchant keeps absorbing the original fee.
Omit amount for a full refund of the remaining refundable.
Emits a payment.refunded webhook.
Autorisations
API key in format sp_sk_test_... or sp_sk_live_....
Paramètres de chemin
Transaction id of the original collection, e.g. TX_8K3M9F.
^TX_[A-Z0-9]+$Corps
Amount in minor units to refund. Omit for a full refund of the remaining refundable (original amount − prior refunds).
x >= 1500
Optional idempotency reference. Auto-generated when omitted.
1 - 80Optional free-form description (max 200 chars).
200Réponse
Refund created (status SUCCESS or INSUFFICIENT_FUNDS).
Transaction id of the refund.
"TX_RF01A2B3"
refund Final settlement status.
SUCCESS, PIN_INVALID, INSUFFICIENT_FUNDS, TIMEOUT, ACCOUNT_BLOCKED, USER_CANCELLED, UNKNOWN_MSISDN, LIMIT_EXCEEDED, SERVICE_UNAVAILABLE, DUPLICATE_REFERENCE, PENDING Amount refunded (minor units).
x >= 1500
The original collection this refund reverses.
"TX_8K3M9F"
Total successfully refunded against the parent, including this refund.
500
Refundable amount still remaining after this refund.
0
Merchant float after the refund.
Recipient SIM balance after the credit, or null.
True when this refund already existed (idempotent replay).