Datatypes

Harmonized System (HS) code

ID hs_code

DatatypeNot PIIcategoricalDraft

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
85/100 · missing: translation, detector coverage
Metacrafter rules
no detection rule yet
Supported by tools
no tool record lists this type yet

Regular expression

^(?:\d{2}|\d{4}|\d{6}|\d{2}\.\d{2}|\d{4}\.\d{2})$

Python re syntax.

Examples

ValueDescription
0101.21Subheading as the WCO writes it: horses, pure-bred breeding animals
010121The same subheading without the dot, as in UN Comtrade
01.01Heading: live horses, asses, mules and hinnies
2203Heading: beer made from malt
01Chapter: live animals
01012100 invalidEight digits: an EU Combined Nomenclature code
0101.2 invalidIncomplete subheading

Sources

Use this record