Payments
Refund a payment
Changed onIssue a full or partial refund for a succeeded payment. If amount is omitted, the full payment amount is refunded.
post/api/payments/{id}/refund
Request
- Base URLhttps://api.novabilling.one
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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"
}Changes
- info
added the media type
application/jsonfor the response with the status
- info