Initiates a refund for a previously paid invoice. This endpoint allows full or partial refunds, depending on the amount specified in the request.
You must supply the unique invoiceId of the transaction to be refunded, along with the refund amount (for partial refund).
The system validates the refund against the original payment details and ensures it does not exceed the total invoice value.
Useful for customer-initiated cancellations, returns, or support-driven refund requests.
All refund attempts are tracked and reflected in the invoice history and reporting.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.