Idempotency Supported
Try in API ExplorerRecords an offline payment for an invoice.
Use this API to record payments that you receive outside Chargebee, such as bank transfers or checks, so that you can reconcile them against invoices.
Prerequisites & Constraints
- The invoice
statusmust bepayment_due,posted, ornot_paid.
Impacts
Invoice
- The
amount_dueon the invoice decreases bytransaction[amount]when thetransaction[status]issuccess. - The invoice
statuschanges topaidif theamount_dueon the invoice becomes zero because of this payment. Otherwise, thestatusremains unchanged.
Customer
If the recorded payment exceeds the invoice's amount_due, the excess is added to the customer's excess_payments balance.
Implementation Notes
Before calling this API, ensure the following:
- The invoice
statusmust bepayment_due,posted, ornot_paid.
Sample Request
URL Format
POST https://[site].chargebee.com/api/v2/invoices/{invoice-id}/record_payment
Input Parameters
Returns
invoiceInvoice object
Resource object representing invoice
transactionTransaction object
Resource object representing transaction