If you’re looking to classify items to the universal (6-digit) WCO HS code, use the example below.
The input takes a list so you can request many or a single classification at once.
MUTATION
GraphQL
mutation ClassificationsCalculate(
$itemToClassify: [ClassificationCalculateInput!]!
) {
classificationsCalculate(input: $itemToClassify) {
id
name
category
imageUrl
hsCode {
code
}
}
}
VARIABLES
JSON
{
"itemToClassify": [
{
"category": "women's clothing",
"imageUrl": "https://zonos.com/images/cozygloves.png",
"name": "Cozy Design Women's Knitted Gloves with Roll Up Cuffs for Winter"
}
]
}
RESPONSE
JSON
{
"data": {
"classificationsCalculate": [
{
"id": "classification_8C49fk2945jmm232CcQtHtXdu",
"name": "Cozy Design Women's Knitted Gloves with Roll Up Cuffs for Winter",
"category": "women's clothing",
"imageUrl": "https://zonos.com/images/cozygloves.png",
"hsCode": {
"code": "6116.10"
}
}
]
}
}
The benefits of classifying to a country-specific code include improved restricted item management, reduced tax rates, preferential duty rates, and smoother customs clearance.
To request classifications to specific countries, add the countries' ISO codes in the Classify request as seen in the example below.
To request classifications to specific countries, add the countries' ISO codes in the Classify request as seen in the example below.
The benefits of classifying to a country-specific code include improved restricted item management, reduced tax rates, preferential duty rates, and smoother customs clearance.
The input takes a list so you can request many or a single classification at once.
Mutation
mutation ClassificationsCalculate($itemToClassify: [ClassificationCalculateInput!]!) {
classificationsCalculate(input: $itemToClassify) {
id
name
category
imageUrl
configuration {
shipToCountries
}
hsCode {
code
countryCode
}
}
}
Variables
{
"itemToClassify": [
{
"category": "women's clothing",
"imageUrl": "https://zonos.com/images/cozygloves.png",
"name": "Cozy Design Women's Knitted Gloves with Roll Up Cuffs for Winter",
"configuration": {
"shipToCountries": ["CA", "KR"]
}
}
]
}
Response
{
"data": {
"classificationsCalculate": [
{
"id": "classification_8C49fk2945jmm232CcQtHtXdu",
"name": "Cozy Design Women's Knitted Gloves with Roll Up Cuffs for Winter",
"category": "women's clothing",
"imageUrl": "https://zonos.com/images/cozygloves.png",
"configuration": {
"shipToCountries": ["CA", "KR"]
},
"hsCode": {
"code": "6116.10.0020",
"countryCode": "CA"
}
},
{
"id": "classification_8C49fk2945jmm232CcQtHtXdu",
"name": "Cozy Design Women's Knitted Gloves with Roll Up Cuffs for Winter",
"category": "women's clothing",
"imageUrl": "https://zonos.com/images/cozygloves.png",
"configuration": {
"shipToCountries": ["CA", "KR"]
},
"hsCode": {
"code": "6116.10.2030",
"countryCode": "KR"
}
}
]
}
}
hsCode
is returned with a 6 to 8+ digit HS code, depending on whether or not a ship-to country was included in the request, your classification request was successful.{"errors": [ { "message": "No adequate response"}]}
is returned, that means Classify could not find a classification due to insufficient input information.
Classifying items
COMING SOON
Examples of universal and country-specific classifications.
The examples below show how to generate classifications for products to the universal (6-digit) and country-specific (8+ digit) levels. Learn about the differences between universal and country-specific HS codes.