For a law firm
Checking goods codes against sanctions
Is this product covered by the sanctions? You enter a goods code and see what the code is and whether a restriction applies: from which regulation and annex, and since which sanctions package. A restriction at a higher level also applies to every code below it.
- What goes in
- A goods code, or a question in plain language that contains one.
- What comes out
- The official description of the code. If a restriction applies, also the regulation, the annex, the article and the package in which the code was added or removed.
- Built as
- Part of the firm's research assistant
Engineering
Under the hood
Two tables in Postgres. One holds the full Combined Nomenclature from the European Commission's TARIC database, as a tree from chapter down to eight-digit code. The other holds the codes from the annexes of the sanctions regulations, each with the package in which it was added or removed. One SQL function looks up a code and lets the sanctions status cascade down the tree: an eight-digit code inherits the restriction of its six-digit or four-digit parent. Where a proper description is missing, a SOAP call to TARIC fetches it.
- 01 Postgres
- 02 PL/pgSQL
- 03 TARIC nomenclature tree
- 04 TARIC SOAP API
- 05 TypeScript
- 06 prefix and GIN indexes
Does your team have a task like this?
Get in touch