SalesTaxes (USA)
Using Product's HSCode
Infos to get the USA Sales Taxes
POST https://api.transiteo.io/v1/data/salestaxes
Headers
Authorization
string
"your id_token"
Content-Type
string
application/json
{
"hscode_description": "Hats and other headgear, knitted or crocheted, or made up from lace, felt or other textile fabric, in the piece (but not in strips), whether or not lined or trimmed; hairnets of any material, whether or not lined or trimmed",
"import_statut": "Authorized for importation into this country",
"threshold_tax": "22",
"threshold_tax_currency": "EUR",
"annual_revenue_union_locals_taxes_minimis": 0,
"other_taxes": []
}1. Incorrect Json (json body request incorrect
a)
@ValidateIf(o => o.sku === undefined && o.product_text === undefined)
@IsNotEmpty()
hs_code: string;
@ValidateIf(o => o.hs_code === undefined && o.product_text === undefined)
@IsNotEmpty()
sku: string;
@ValidateIf(o => o.sku === undefined && o.hs_code === undefined)
@IsNotEmpty()
product_text: string;
@IsNotEmpty()
@Length(3, 3, {message: "from_country should be ISO3"})
from_country: string;
@IsNotEmpty()
@Length(3, 3, {message: "to_country should be ISO3"})
to_country: string;
to_district: string;
b) Error Response Example:
{
"code": "INCORRECT_JSON",
"name": "ClientError",
"message": "Incorrect Json Request",
"details": [
{
"parameter": {
"name": "hs_code / product_text / sku"
},
"causes": [
"hs_code or product_text or sku must be filled"
]
}
]
}
wrong token id or token has expired1. Country not match
{
"code": "COUNTRY_NOT_MATCH",
"httpCode": 404,
"name": "BusinessError",
"message": "Sorry, we did not match any country. Please make sure it's spelled correctly",
"details": []
}
2. HScode not found. Happened when eu hscode is given but no correspondance was found in DUTY_DYNAMO
{
"code": "HSCODE_NOT_FOUND",
"httpCode": 404,
"name": "BusinessError",
"message": "No duty data found",
"details": []
}
3. Machine Learning did not recognize text (maybee text with special
characters or text is a barcode){
"code": "TEXT_NOT_FOUND",
"httpCode": 404,
"name": "ClientError",
"message": "Did not find your text in our database",
"details": []
}{
"code": "UNEXPECTED_ERROR",
"httpCode": 500,
"reason": "Please try again or contact our service",
}Json Request Format
{
“sku”: string,
“hs_code”: string,
“from_country”: string,
“to_country”: string,
“to_district”: string
}Request fields & values
"sku"
You need to fill this field with the product's SKU of your catalog Examples : HUYYUU37Y Type : string Required : yes if you don't fill hs_code & product_text fields
"hs_code"
You need to fill this field with the product's HSCode (8 to 13 digits) of the arrival country. Examples : 4202310000 Type : string Required : yes if you don't fill sku & product_text fields
"from_country"
You need to fill the "from_country" field with the Iso Alpha 2 or 3 from where the product leaves. Download the list of countries. Examples : "FRA" Type : string Required : yes
"to_country"
You need to fill the "to_country" field with the Iso Alpha 2 or 3 from where the product arrives. Download the list of countries. Examples : "VEN" Type : string Required : yes
"to_district"
You need to fill the "to_district" field with the Iso codes of the district from where the product arrives. Download the list of districts. Examples : "AL-11" or "FR-GES" Type : string Required : yes if the to_country is USA, CAN or BRA.
Json Response Format
{
"hscode_description": string,
"import_statut": string,
"threshold_tax": number,
"threshold_tax_currency": string,
"locals_taxes": [
{
"label": string,
"percentage": number
}
]
}Result fields & values
"hscode_description"
It's the entire HSCode (customs code) description/designation Examples : chapter_designation : Headgear and parts thereof -- heading_designation : Hats and other headgear, knitted or crocheted, or made up from lace, felt or other textile fabric, in the piece (but not in strips), whether or not lined or trimmed; hair-nets of any material, whether or not lined or trimmed. -- subheading_designation : Hats and other headgear, knitted or crocheted, or made up from lace, felt or other textile fabric, in the piece (but not in strips), whether or not lined or trimmed; hairnets of any material, whether or not lined or trimmed (excl. headgear for animals, and toy and carnival headgear) -- national_designation : Hats and headgear, of man-made fibers, made up from felt or of textile material, not knitted or crocheted, not in part of braid Type : string
"import_statut"
There are 3 differents values : Authorized for importation into this country / Restricted for importation into this country / Prohibited for importation into this country. It's the product statut for importation in the to_country. Examples : Authorized for importation into this country Type : string
"threshold_tax"
Each country have an order threshold. This one is for the locals taxes taxes. If your order is less than the threshold you don't need to pay locals tax. If your order is more than the threshold you have to pay locals tax. Examples : 800 Type : string
"threshold_tax_currency"
It's the currency iso 3 code of threshold tax. Download the list of currencies with them name and code. Examples : USD Type : string
"locals_taxes" / "label"
It's the local tax name. Examples : SalesTaxes Type : string
"locals_taxes" / "percentage"
It's the local tax percentage to apply. Examples : 16 Type : string
JSON Examples - Request & Response
It exist many possibilities. Please book a call with our support team.
Video explainer
in progress...
Last updated