Back to Features
⚙️

HS Code Classification

ActiveCoreMUSTFREE

What it does

Classify any product into its correct HS (Harmonized System) code using POTAL's v3.3 GRI pipeline. The system uses 595 codified rules across all 21 Sections of the HS nomenclature — zero AI calls, zero per-request cost. Supports text-based classification with 9-field input, image-based classification, and batch processing for hundreds of products at once.

Required Fields for 100% Accuracy

1 required / 9 total
FieldTypeRequired
productNamestring!
categorystringopt
materialstringopt
processingstringopt
compositionstringopt
weight_specstringopt
pricenumberopt
origin_countrystringopt
destination_countrystringopt

Tips for Best Accuracy

  • All 9 fields provided = highest confidence classification
  • productName alone works but may return lower confidence
  • Adding material + processing dramatically improves accuracy for textiles and metals
  • price field is critical for HS headings with "valued over/under $X" rules
  • destination_country affects 10-digit HS code selection (US, EU, GB, CA, AU, JP, KR)

Common Mistakes

  • Putting material in the category field — "cotton" is a material, "apparel" is the category
  • Using full country names instead of ISO codes — use "CN" not "China"
  • Too-generic product names — "shirt" is vague, "men's cotton knitted t-shirt" is precise
  • Including brand names — "Nike Air Max" should be "running shoes, leather upper, rubber sole"
  • Mixing up processing and composition — processing = how it's made, composition = what it's made of

How to use it

1

Get your API key

Sign up at potal.app and generate an API key from the Dashboard > API Keys section.

2

Prepare your product data

At minimum, provide a productName. For best accuracy, include category, material, and processing details.

3

Send a POST request

Call POST /api/v1/classify with your product data. The response includes the HS code, confidence score, and classification path.

4

Review the result

Check the confidence score and alternatives array. If confidence is below 0.8, consider providing more product details.

API Reference

POST/api/v1/classify
Request
{
  "productName": "Men's cotton t-shirt",
  "category": "Apparel"
}
Response
{
  "hsCode": "6109.10",
  "description": "T-shirts, singlets and other vests, of cotton, knitted or crocheted",
  "confidence": 0.95,
  "alternatives": [
    {
      "hsCode": "6109.90",
      "confidence": 0.82
    }
  ]
}
cURL
curl -X POST https://potal.app/api/v1/classify \
  -H "X-API-Key: pk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{"productName": "Men\'s cotton t-shirt", "category": "Apparel"}'

Related Features

Having issues?