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
Defines the parameters of a tax estimation request. This is sent to the Tax Service Adapter by Chargebee to estimate taxes for one or more line items.
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 time as of which the tax estimation is to be calculated. This can be a value in the past. For example, if the value is provided as 2022-10-28T15:36:28.129+05:30, then the tax rates applicable on October 28, 2022, at 15:36:28.129, with an offset of +05:30 ahead of UTC/GMT are used for calculations. In 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
Contains the details of each line item in the tax estimation request.
1 - 1250
elementsResponse
Tax estimated successfully for given line items.
The response sent by the Tax Service Adapter to Chargebee for a tax estimation request.
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 time as of which the tax estimation is to be calculated. This can be a value in the past. For example, if the value is provided as 2022-10-28T15:36:28.129+05:30, then the tax rates applicable on October 28, 2022, at 15:36:28.129, with an offset of +05:30 ahead of UTC/GMT are used for calculations. In 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 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
.
List of line item details for the tax estimation response.
1 - 1250
elements