Authorizations
The json of all the parameters specified in authentication configuration of tax app will be sent by Chargebee.
Headers
Merchant's domain name will be sent by Chargebee
Unique id of the request will be sent by Chargebee
Body
The details of an invoice sent to the Tax Service Adapter by Chargebee.
The unique identifier of the invoice in Chargebee.
50
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 currency in the ISO-4217 format.
3
The details of the seller involved in the transaction including company code and address.
{
"address": {
"country": "country",
"city": "city",
"postalCode": "postalCode",
"state": "state",
"line3": "line3",
"line2": "line2",
"line1": "line1"
},
"taxRegistrationNumber": "taxRegistrationNumber",
"hasNexus": true
}
The details of the Customer.
{
"address": {
"country": "country",
"city": "city",
"postalCode": "postalCode",
"state": "state",
"line3": "line3",
"line2": "line2",
"line1": "line1"
},
"name": "name",
"customerCode": "customerCode",
"company": "company",
"taxRegistrationNumber": "taxRegistrationNumber",
"hasNexus": true,
"locationEvidence": {
"paymentCountryCode": "paymentCountryCode",
"bin": "bin",
"ip": "ip"
},
"taxIdentifiers": [
{ "id": "id", "value": "value" },
{ "id": "id", "value": "value" },
{ "id": "id", "value": "value" },
{ "id": "id", "value": "value" },
{ "id": "id", "value": "value" }
]
}
The amount after discounts. This is the sum of all lineItems.subtotal
.
The part of the subtotal
that is exempted from tax.
The total discount applied. This is the sum of all lineItems.discount
.
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
.
1 - 1250
elementsThe 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
Invoice created successfully.
The details of an invoice as returned by the Tax Service Adapter.
The unique identifier of the invoice in the Tax Service Adapter or the Tax Service Provider.
The unique identifier of the invoice in Chargebee.
50
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.
Status of the invoice document.
PENDING
, COMMITTED
, VOIDED
The currency in the ISO-4217 format.
3
The details of the seller involved in the transaction including company code and address.
{
"address": {
"country": "country",
"city": "city",
"postalCode": "postalCode",
"state": "state",
"line3": "line3",
"line2": "line2",
"line1": "line1"
},
"taxRegistrationNumber": "taxRegistrationNumber",
"hasNexus": true
}
The details of the Customer.
{
"address": {
"country": "country",
"city": "city",
"postalCode": "postalCode",
"state": "state",
"line3": "line3",
"line2": "line2",
"line1": "line1"
},
"name": "name",
"customerCode": "customerCode",
"company": "company",
"taxRegistrationNumber": "taxRegistrationNumber",
"hasNexus": true,
"locationEvidence": {
"paymentCountryCode": "paymentCountryCode",
"bin": "bin",
"ip": "ip"
},
"taxIdentifiers": [
{ "id": "id", "value": "value" },
{ "id": "id", "value": "value" },
{ "id": "id", "value": "value" },
{ "id": "id", "value": "value" },
{ "id": "id", "value": "value" }
]
}
The amount after discounts. This is the sum of all lineItems.subtotal
.
The part of the subtotal
that is exempted from tax.
The total discount applied. This is the sum of all lineItems.discount
.
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
.
1 - 1250
elementsThe 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.