Payments
Refund a payment
Issue a full or partial refund for a succeeded payment. If amount is omitted, the full payment amount is refunded.
post/api/payments/{id}/refund
Path parameters
idstring required
Payment ID
Request body
Response
Payment refunded successfully
Example response
{
"id": "clx1234567890",
"invoiceId": "clxinv123",
"provider": "paystack",
"providerTransactionId": "PAY_txn_abc123",
"amount": "99.9900",
"currency": "USD",
"status": "SUCCEEDED",
"failureReason": "Insufficient funds"
}