A Credit Note is a document that specifies the money owed by a business to its customer. The seller usually issues a Credit Note for the same or lower amount than the invoice, and then repays the money to the customer or set it off against other 'due' invoices.
Credit notes in Chargebee are categorized into three types:
1. adjustment
: Adjustment credit notes are used to adjust the amount of an existing invoice in the payment_due
or not_paid
status. Use this type of credit note to reduce the invoice amount, typically as a discount to the customer.
Adjustment credit notes are automatically created in the following cases:
payment_due
or not_paid
status.2. refundable
: Refundable credit notes allow you to return a certain amount to the customer. These credits can be:
Refundable credit notes are automatically created in the following cases:
paid
status. Refundable credits are applied to future invoices or can be refunded to the original payment method.3. store
: Store credit notes are created for paid
or partially_paid
invoice status during subscription changes, such as upgrades, downgrades, or cancellations.
Key characteristics of store credits:
{
"allocations": [],
"amount_allocated": 0,
"amount_available": 500,
"amount_refunded": 0,
"base_currency_code": "USD",
"create_reason_code": "Product Unsatisfactory",
"currency_code": "USD",
"customer_id": "__test__KyVnHhSBWSy4m5e",
"date": 1517501405,
"deleted": false,
"exchange_rate": 1,
"fractional_correction": 0,
"id": "__demo_cn__1",
"line_item_discounts": [],
"line_item_taxes": [],
"line_items": [
{
"amount": 500,
"customer_id": "__test__KyVnHhSBWSy4m5e",
"date_from": 1517501405,
"date_to": 1517501405,
"description": "Support Charge",
"discount_amount": 0,
"entity_type": "adhoc",
"id": "li___test__KyVnHhSBWSyHE5r",
"is_taxed": false,
"item_level_discount_amount": 0,
"object": "line_item",
"pricing_model": "flat_fee",
"quantity": 1,
"tax_amount": 0,
"tax_exempt_reason": "tax_not_configured",
"unit_amount": 500
}
],
"linked_refunds": [],
"object": "credit_note",
"price_type": "tax_exclusive",
"reason_code": "product_unsatisfactory",
"reference_invoice_id": "__demo_inv__1",
"resource_version": 1517501405000,
"round_off_amount": 0,
"status": "refund_due",
"sub_total": 500,
"taxes": [],
"total": 500,
"type": "refundable",
"updated_at": 1517501405
}
round_off_amount
. If there is no round-off amount
, it will display 0
. billing_address
country
as XI
(which is United Kingdom - Northern Ireland).billing_address
country
as XI
. That’s the code for United Kingdom - Northern
Ireland. The first two characters of the VAT number in such a case is
XI
by default. However, if the VAT number was registered in UK, the value should be GB
. Set
vat_number_prefix
to GB
for such cases. reference_invoice_id
. invoice.linked_taxes_withheld
component of the invoice
associated with this credit_note
. Creates a credit_note
for the specified invoice.
Note:
If the credit_note
type
is refundable
, then linked_taxes_withheld.amount
for the invoice specified can also be included in the total
.
Download the e-invoice for the credit note in both XML and PDF formats. The response consists of a download
object for each format. The XML format follows the structure as per Peppol BIS Billing v3.0.
Note
status
is success
or registered
.cbc:EmbeddedDocumentBinaryObject
, which is the Base64-encoded version of the PDF.Refunds a (refundable) credit note to the payment source associated with the transaction. Any linked_tax_withheld_refunds
recorded against the credit note are not refunded.
credit_note
is refunded.
Note: Any linked_tax_withheld_refunds
associated with the credit_note
cannot be refunded via this operation. Refunds a (refundable) credit note. The refund is provided against linked_payments
first and then against any linked_taxes_withheld
for the invoice
associated with the credit_note
. For payments made via online transactions, the refund request is processed via the payment source associated with the transaction.
Use this API to void a credit note. A voided credit is a null entity and cannot be used again. A credit note which has already been voided or refunded cannot be voided. An error message will be displayed when you render such credit notes void.
Note: When adjustment credit notes are voided, the associated invoice will reflect as NOT PAID, and the amount in the invoice will be recalculated to reflect the amount after considering the voided credit note.
Lists all the Credit Notes.
status
, see message
. Possible values are : scheduled, skipped, in_progress, success, failed, registered This API deletes a credit note. A credit note once deleted, is deleted permanently. You cannot delete a credit which has already been deleted or refunded. If you try to delete a refunded or deleted credit note, an error message will be displayed.
linked_tax_withheld_refunds
record from the credit_note
.This endpoint is used to send an e-invoice for invoice.
To support cases like TDS and invoice edits, we need to stop auto e-invoice sending and be able to send e-invoices manually.
This endpoint schedules e-invoices manually. This operation is not allowed when any of the following condition matches:
If e-invoicing is not enabled at the site and customer level.
If there is an e-invoice generated already for the invoice.
If the “Use automatic e-invoicing “ option is selected.
If there are no generated e-invoices with the failed
or skipped
status.
If the invoice status is voided
or pending
.
round_off_amount
. If there is no round-off amount
, it will display 0
. billing_address
country
as XI
(which is United Kingdom - Northern Ireland).billing_address
country
as XI
. That’s the code for United Kingdom - Northern
Ireland. The first two characters of the VAT number in such a case is
XI
by default. However, if the VAT number was registered in UK, the value should be GB
. Set
vat_number_prefix
to GB
for such cases.