Estimate tax
This endpoint is used to estimate taxes for a set of line items being sold by the Merchant to a Customer.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
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 currency in the ISO-4217 format.
3
The details of the Customer.
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
Contains the details of each line item in the tax estimation request.
The details of the seller involved in the transaction including company code and address.
Response
The response sent by the Tax Service Adapter to Chargebee for a tax estimation request.
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 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 part of the subtotal
that is exempted from tax.
List of line item details for the tax estimation response.
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
.