Create Invoice
This endpoint is used to send an invoice to the Tax Service Provider. Invoices created in Chargebee are statements of amounts owed by the Customer to the Merchant for a specific purchase.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The details of an invoice sent to the Tax Service Adapter by Chargebee.
The currency in the ISO-4217 format.
3
The details of the Customer.
The total discount applied. This is the sum of all lineItems.discount
.
The date and time at which the invoice was generated in Chargebee. For example, if the value is 2022-10-28T15:36:28.129+05:30, then the timestamp represents October 28, 2022, at 15:36:28.129, with an offset of +05:30. This means that the time represented is 5 hours and 30 minutes ahead of UTC/GMT.In the case of a merchant site located in UTC, these data types would send a timestamp in the format 2022-11-11T15:40:44.65Z. This timestamp represents November 11, 2022, at 15:40:44.65, with the 'Z' indicating that the time is in UTC.
The part of the subtotal
that is exempted from tax.
The unique identifier of the invoice in Chargebee.
50
The details of the seller involved in the transaction including company code and address.
The amount after discounts. This is the sum of all lineItems.subtotal
.
The part of the subtotal
that is taxable.
The total tax payable. This is the sum of all lineItems.taxAmount
.
The total after discounts and taxes. This is the same as subtotal
if it is tax inclusive; otherwise it is subtotal
+ taxAmount
. total
can also be expressed as exemptAmount
+ taxableAmount
+ taxAmount
.
The date and time at which the tax was applicable in Chargebee. For example, if the value is 2022-10-28T15:36:28.129+05:30, then the timestamp represents October 28, 2022, at 15:36:28.129, with an offset of +05:30. This means that the time represented is 5 hours and 30 minutes ahead of UTC/GMT.In the case of a merchant site located in UTC, these data types would send a timestamp in the format 2022-11-11T15:40:44.65Z. This timestamp represents November 11, 2022, at 15:40:44.65, with the 'Z' indicating that the time is in UTC.
Response
The details of an invoice as returned by the Tax Service Adapter.
The currency in the ISO-4217 format.
3
The details of the Customer.
The total discount applied. This is the sum of all lineItems.discount
.
The date and time at which the invoice was generated in Chargebee. For example, if the value is 2022-10-28T15:36:28.129+05:30, then the timestamp represents October 28, 2022, at 15:36:28.129, with an offset of +05:30. This means that the time represented is 5 hours and 30 minutes ahead of UTC/GMT.In the case of a merchant site located in UTC, these data types would send a timestamp in the format 2022-11-11T15:40:44.65Z. This timestamp represents November 11, 2022, at 15:40:44.65, with the 'Z' indicating that the time is in UTC.
The part of the subtotal
that is exempted from tax.
The unique identifier of the invoice in Chargebee.
50
The unique identifier of the invoice in the Tax Service Adapter or the Tax Service Provider.
The details of the seller involved in the transaction including company code and address.
Status of the invoice document.
PENDING
, COMMITTED
, VOIDED
The amount after discounts. This is the sum of all lineItems.subtotal
.
The part of the subtotal
that is taxable.
The total tax payable. This is the sum of all lineItems.taxAmount
.
The total after discounts and taxes. This is the same as subtotal
if it is tax inclusive; otherwise it is subtotal
+ taxAmount
. total
can also be expressed as exemptAmount
+ taxableAmount
+ taxAmount
.
The date and time at which the tax was applicable in Chargebee. For example, if the value is 2022-10-28T15:36:28.129+05:30, then the timestamp represents October 28, 2022, at 15:36:28.129, with an offset of +05:30. This means that the time represented is 5 hours and 30 minutes ahead of UTC/GMT.In the case of a merchant site located in UTC, these data types would send a timestamp in the format 2022-11-11T15:40:44.65Z. This timestamp represents November 11, 2022, at 15:40:44.65, with the 'Z' indicating that the time is in UTC.