Harmonized System (HS) code
ID hs_code
This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).
Code of a goods category in the Harmonized Commodity Description and Coding System of the World Customs Organization (WCO), used for customs tariffs and international trade statistics. A chapter has two digits, a heading four and a subheading six. The WCO writes headings as 01.01 and subheadings as 0101.21; trade databases such as UN Comtrade write the same codes without dots (010121). National tariffs add digits to the six-digit subheading, for example the EU Combined Nomenclature (eu_cn_code) and the US HTS (us_hts_number). The WCO publishes the nomenclature in editions such as HS 2022, and the meaning of a code depends on the edition.
- Categories
- Industry, Shipping and delivery
- Countries
- Global (not tied to a country)
- Languages
- Common to most languages
- Wikidata
- P5471
- Quality
- 95/100 · missing: translation
- Metacrafter rules
- 3 rules (2 by field name, 1 by value)
arncmbynamefield, ar_country/ar_finances.yamlhscodebyfieldfield, common/trade.yamlhscodebyvaluedata, common/trade.yaml
- Supported by tools
- metacrafter
Regular expression
^(?:\d{2}|\d{4}|\d{6}|\d{2}\.\d{2}|\d{4}\.\d{2})$
Python re syntax.
Test a value
Examples
| Value | Description |
|---|---|
| 0101.21 | Subheading as the WCO writes it: horses, pure-bred breeding animals |
| 010121 | The same subheading without the dot, as in UN Comtrade |
| 01.01 | Heading: live horses, asses, mules and hinnies |
| 2203 | Heading: beer made from malt |
| 01 | Chapter: live animals |
| 01012100 invalid | Eight digits: an EU Combined Nomenclature code |
| 0101.2 invalid | Incomplete subheading |
Child datatypes
| ID | Name | Categories | Countries | Description |
|---|---|---|---|---|
| national_tariff_code | National tariff line code (HS-based, 8 or 10 digits) | industry, shipping | global | Goods code of a national or regional customs tariff that extends the six-digit subheading of the Harmonized System (hs_code) with... |
Sources
- wikipedia: Harmonized System (en.wikipedia.org)
- doc: wcoomd.org/en/topics/nomenclature/overview/what-is-the-harmonized-system.aspx
- doc: wcoomd.org/-/media/wco/public/global/pdf/topics/nomenclature/instruments-and-tools/hs-nomenclature-2022/2022/0101_2022e.pdf
- other: comtradeapi.un.org/files/v1/app/reference/HS.json
- wikidata: wikidata.org/wiki/Property:P5471
Use this record
- Page URL:
https://registry.apicrafter.io/datatype/hs_code - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/any/industry/hs_code.yamlon GitHub