Chargebee: Create credit note
chargebee_create_credit_noteChargebee: Credit all or part of an invoice with a refundable or adjustment credit note. Creates a credit note on an invoice and returns it with the updated invoice. The invoice status decides the type: a paid invoice takes only refundable, a payment_due or not_paid invoice only adjustment, a partially paid one either. Pass total or line_items, not both; amounts are in the smallest currency unit, so 5000 is $50.00. A refundable credit note starts with refund due and moves no money until someone refunds it. The comment stays inside Chargebee; customer_notes print on the credit note PDF. This changes what a customer owes or is owed, so by default you confirm each call; you can switch that off for this tool. Reaches other people: confirm with the user before each call. Needs the user's Cotlet API key with access to this app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | refundable or adjustment, as the invoice status allows. | |
| total | No | Credit amount in the smallest currency unit. Use this or line_items. | |
| comment | No | Internal note, 300 characters at most. Not shown to the customer. | |
| line_items | No | Invoice lines to credit, with an amount each. Use this or total. | |
| reason_code | No | A reason code configured in Chargebee, case-sensitive. Required if your site makes reason codes mandatory. | |
| customer_notes | No | Text printed on the credit note PDF, 2000 characters at most. | |
| reference_invoice_id | Yes | Invoice to credit, from list_invoices. |