Records a refund for a refundable credit note.
This API does not process an actual refund for online payments by returning money to customers.
Use this API to record refunds processed outside Chargebee (for example, directly through a payment gateway or via offline methods such as bank transfers or checks) so you can reconcile them in Chargebee.
To process refunds via Chargebee for online payments and automatically return money to customers, use the Refund a credit note API instead.
Prerequisites & Constraints
Impacts
Transactions
Chargebee records the refunds by creating transactions of type refund and links them to the credit note. The refund transactions are recorded in the following order:
linked_paymentsof the invoice associated with the credit note. This is recorded aslinked_refunds[]in the credit note.linked_taxes_withheld(if available). This is recorded aslinked_tax_withheld_refunds[]in the credit note.
Implementation Notes
Before using this API, ensure:
- The credit note
typeisrefundable. - The credit note
statusisrefund_due. - If reason codes are mandatory in Chargebee Billing, include the
refund_reason_codeparameter with a value from the configured list of codes.
Sample Request
URL Format
Input Parameters
Reason code for the refund. Must be one from a list of reason codes set in the Chargebee app in Settings > Configure Chargebee > Reason Codes > Credit Notes > Refund Credit Note. Must be passed if set as mandatory in the app. The codes are case-sensitive.