Docs
Chargebee provides advanced options for numbering your invoices, credit notes and quotes.
For the sake of brevity in this document, the word "invoice" would stand for "invoice, credit note and quote" unless specified otherwise.
The figure below specifies the various parts that an invoice number can have in Chargebee.
Here's what they mean:
Listed below are some useful invoice formats. Steps for configuring each of these formats are given in the next section of this document.
Simple invoice numbers incremented by 1 for each invoice generated. No prefixes or separators here.
100001 > 100002 > 100003 …
You can set your invoice numbers to begin from a specific number, say 50001
.
When you set this, if you already have invoice numbers generated till say, 10003
, your series would look like this:
… 10001 > 10002 > 10003 > 50001 > 50002 > 50003 …
Click here for steps on setting this format.
Fix the number of digits for invoice numbers by filling-in leading zeroes.
Here we've fixed the number to 6 digits:
000001 > 000002 > … > 000136 > 000137 > … > 762355 > 762356 … 1007300 > 1007301
Note: As seen in the last two numbers in the series above, the invoice number can eventually exceed the number of digits set.
Click here for steps on setting this format.
A prefix can be added to the invoice numbers:
CB-10001 > CB-10002 > CB-10003
Click here for steps on setting this.
A dynamic prefix that indicates the date of the invoice can be added:
2017-12-24-10001 > 2017-12-25-10002 > 2018-01-07-10003
Or just the month and year:
2017-12-10001 > 2017-12-10002 > 2018-01-10003
Or just the year:
2017-10001 > 2017-10002 > 2018-10003
Click here for steps on configuring this format.
Reset the numeric part of the first invoice number everyday to say, 10000
.
2017-11-23-10003 > 2017-11-23-10004 > 2017-11-24-10000 > 2017-11-25-10000
Reset every month:
2017-06-21-10003 > 2017-06-22-10004 > 2017-07-13-10000 > 2017-07-14-10001
Reset every year, say, in April:
2016-02-13-10002 > 2016-02-15-10003 > … > 2016-03-30-10236 > 2016-04-02-10000 > 2016-04-01-10002 …
When resetting yearly, another dynamic prefix is available: Fiscal Year (FY).
The previous series would look as follows with this prefix:
201516-10002 > 201516-10003 > … > 201516-10236 > 201617-10000 > 201617-10002
(The fiscal year prefix is only available when resetting the invoice number and that too every year)
The invoice number can also be reset to a specific value instead of 1, say 20001
:
2017-06-10003 > 2017-06-10004 > 2017-07-20001 > 2017-07-20002
Chargebee automatically prevents invoice number duplication by:
Click here for steps on enabling invoice number reset.
You may want to be discreet about how many invoices are being generated by your company by wanting to generate random invoice numbers.
Although random invoice numbering is not strictly supported, Chargebee can help by allowing you to increment your invoice numbers by a value greater than 1.
So if the regular invoice numbers were as follows:
… CB-20001 > CB-20002 > CB-20003 > CB-20004 …
You can break the flow a bit by choosing to increment by say, 13 each time:
… CB-20001 > CB-20014 > CB-20027 > CB-20040 …
Note: Credit note numbers do not have this feature.
Click here for steps on configuring this.
To configure any of the above formats, first navigate to Settings > Configure Chargebee > Invoices, credit notes and quotes > Invoices tab or Credit Notes tab or Quotes tab (as applicable) > Click on Manage next to Invoice Numbering or Credit Note Numbering or Quote Numbering (as applicable). The screen would look like this:
Before we look at how to configure the settings on this page, there are some points to bear in mind:
4
and the number of digits must be 6, then enter 000004
in the field.Note: A preview is shown for what the invoice number would be on the next reset.
As mentioned earlier, there is no way to generate strictly random invoice numbers in Chargebee. However, you may set Increment invoice numbers by to a suitable value to avoid generating invoice numbers sequentially.
Note: Credit note numbers do not have this feature.