Idempotency Supported
Refunds an online payment. Applicable only for transactions of type = payment. You can only refund a transaction whose status is success.
- Not supported for ach_credit, sepa_credit, cash, check, bank_transfer, other.
- Contact Chargebee Support to enable this endpoint.
Sample Request
Sample Result[JSON]
URL Format
POST https://[site].chargebee.com/api/v2/transactions/{transaction-id}/refund
Input Parameters
The amount to be refunded. Must not exceed amount_unused.
If not passed then all of amount_unused
is refunded.
Returns
Transaction object
Resource object representing transaction