Refunds a specified amount from a refundable credit note back to the customer's payment source.
This operation supports only refunds against online payments. The refund amount is returned to the customer through the payment_source associated with the transaction. If multiple transactions are associated with the credit note, call this API once for each transaction.
To record offline refunds, including those for linked_taxes_withheld, use the Record refund for a credit note API.
Prerequisites & Constraints
- The credit note
typeisrefundable. - The credit note
statusisrefund_due. - The credit note has an
amount_availablegreater than 0. - Part or all of the credit note's
amount_availableis from online payments. - The credit note is not standalone; it has an associated invoice.
- You can process partial refunds only if the associated payment gateway supports partial refund operations.
Impacts
Credit note
- The credit note's
amount_availableis reduced by the refunded amount. - The credit note's
statusis updated torefundedif the refunded amount is equal to the credit note'samount_available. - The credit note's
linked_refundsis updated with the details of the refund transaction.
Transaction
Chargebee creates a transaction of type refund and links it to the credit note under credit_note.linked_refunds.
Sample Request
URL Format
Input Parameters
The amount to be refunded.
Constraints
- If multiple transactions are associated with the credit note, the refund can be processed only for one transaction at a time.
- Offline refunds, including those for
linked_taxes_withheld, cannot be refunded via this operation. Use the Record refund for a credit note API instead.
Default behavior
- If not specified, the
amount_availablefor this credit note is implied.
A note to be added for this operation, to the credit note. This note is displayed on customer-facing documents such as the Credit Note PDF .
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.