Guide

HS codes for Shopify: a merchant's guide to product classification

June 11, 2026 · 9 min read · hs code shopify, harmonized system code shopify

Every Shopify product that crosses an international border needs a harmonized system code — a standardized number customs authorities use to identify what you are shipping. Without one, parcels get delayed, duties get guessed, and customers get surprise bills after delivery.

This guide explains what an HS code is in plain language, where it lives in Shopify, which codes you need for Canada, the United States, China, and the EU, and how to classify your catalog before you turn on cross-border sales.

What is an HS code?

HS stands for Harmonized System — a global product classification framework maintained by the World Customs Organization. Governments worldwide use HS codes to answer one question at the border: what is this product?

That answer drives everything downstream:

For ecommerce, the HS code is the bridge between your Shopify product page and the commercial invoice your carrier files with customs. Carriers do not classify your products for you — they declare what you tell them.

HS, HTS, CBSA: what's the difference?

Merchants often hear overlapping terms. Here is a simple map:

When someone searches "hs code shopify", they usually mean: what number do I put on my product so customs and Shopify Markets work correctly? The answer is market-specific — often two or more codes per SKU.

Where HS codes live in Shopify

Shopify stores product customs data in a few places depending on your setup:

The field only helps if the value is accurate. A blank field or a 6-digit supplier guess creates the same border risk as no code at all.

Which codes does your store actually need?

Requirements depend on where you ship and where you source — not on how many countries your Shopify Markets list shows.

Canada (CBSA — 10 digits)

Required for any product you ship to Canadian customers. CBSA uses the code to apply the correct duty rate under the Customs Tariff. Shopify Markets checkout duty estimates also depend on this value.

United States (HTS — 10 digits)

Required for US-bound shipments. The HTS schedule was updated in 2026 (Revision 5) for many consumer goods lines. Codes from older reference materials may be structurally valid but carry outdated duty rates.

China (GACC — 8 digits)

Relevant if you export from China, source from Chinese suppliers, or sell to Chinese customers. Eight-digit China codes differ from the 10-digit formats used in North America.

European Union (CN — 8 digits)

EU-bound shipments need the Combined Nomenclature code. Many classification tools provide EU suggestions alongside North American codes.

A US-only brand expanding to Canada needs at minimum CBSA + HTS codes on every cross-border SKU. A brand shipping to all four regions may need four distinct codes per product. See our Canada vs US codes guide for why one code is never enough.

How HS codes connect to Shopify Markets and duties

Shopify Markets can display estimated duties and taxes at checkout — but only when your product data supports it. The calculation chain is:

  1. Your product has an HS code and country of origin
  2. Shopify or your carrier app looks up the duty rate for that code in the destination country
  3. The buyer sees an estimated landed cost at checkout
  4. On fulfillment, the carrier transmits the same code on the commercial invoice

If step one is wrong, every step after it is wrong. Customers who receive post-delivery duty bills were usually charged at checkout based on bad product data — or not charged at all because the field was empty.

Manual classification vs AI classification

There are three common approaches. Each fits a different stage of growth.

Manual research

You look up products one at a time in CBSA and USITC tariff browsers, cross-reference supplier invoices, and paste codes into Shopify. This works for five SKUs. It does not scale to 500.

Broker classification

A licensed customs broker classifies products with legal accountability. Best for regulated goods, high-value lines, and binding rulings. Expensive for a full consumer-goods catalog.

AI classification with GRI reasoning

Tools like Jstars AI HS Code Classifier read your product title, description, tags, and type, then assign market-specific codes using General Rules of Interpretation (GRI) logic — the same framework brokers use. You get explainable reasoning per SKU, duty rates, and confidence scores. Suitable for standard consumer goods at catalog scale.

Most merchants use AI for the bulk of the catalog and escalate edge cases to a broker. That is faster and cheaper than broker-classifying every t-shirt and phone case.

Why brokers ask "why this code?"

A code alone is not enough for compliance. Customs authorities and brokers want to know the reasoning — which GRI rules were applied, which chapter and heading were considered, and why alternatives were rejected.

This is where classification detail matters. A good system shows:

When a shipment is held, you can hand the broker a documented rationale instead of re-researching from scratch. That is the difference between a same-day release and a week-long email thread.

Common mistakes new Shopify merchants make

  1. Leaving the field blank — "I'll add codes when we go international." International orders happen before you are ready.
  2. Using the supplier's 6-digit code — Factory invoices rarely include country-specific 10-digit extensions.
  3. One code for all countries — US HTS pasted into the Canada field is a frequent cross-border error.
  4. Classifying the parent, ignoring variants — Size and material differences can change the code.
  5. Set-and-forget — Product titles change, tariff schedules update, new SKUs launch. Codes go stale.

Checklist: catalog cleanup before international launch

Run through this before enabling Shopify Markets in a new country or scaling cross-border ad spend:

If more than 10% of your catalog has missing or chapter-level codes, fix the data before you flip the market switch.

Getting started with 20 free classifications

You do not need to classify 2,000 SKUs on day one. Start with your top 20 products by international revenue:

  1. Install Jstars AI HS Code Classifier from the Shopify App Store
  2. Choose your mode: CA + US, CA only, US only, or CA + US + CN
  3. Run the catalog audit to see gaps
  4. Classify your highest-volume SKUs (20 free per month on the Free plan)
  5. Review GRI reasoning, export CSV, and sync codes back to Shopify

Upgrade when catalog volume outgrows the free tier. Every paid plan includes the same GRI-aligned reasoning, duty rates, and bulk classify tools.

Classify your Shopify catalog

Canadian CBSA, US HTS, and China GACC codes with GRI-aligned reasoning and duty rates — free for your first 20 classifications each month.

Install on Shopify — Free

Related reading: US tariffs 2026 · HS code FAQ (33 answers) · Canada vs US HS codes · Free customs readiness audit · Shopify Markets duties guide