ChargebeeAPI

Refund a payment

Idempotency Supported
Try in API Explorer

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 support@chargebee.com to enable this endpoint.

Sample Request

URL Format

POST https://[site].chargebee.com/api/v2/transactions/{transaction-id}/refund

Input Parameters

amount
optional, in cents, min=1

The amount to be refunded. Must not exceed amount_unused. If not passed then all of amount_unused is refunded.

comment
optional, string, max chars=300

Remarks, if any, on the refund.

Returns

transactionTransaction object

Resource object representing transaction