- Tullin ohjeet
- en
- Fintaric
- TARIC Data Export for Traders
- TARIC data export
TARIC data export
Export principles
Exports are created automatically whenever TARIC data changes, when EU message is processed or when national data are changed. Exports will be made by incremental way - only new, changed or deleted records will be exported.
Content of all tables is also exported automatically once a month (full export).
Exported data are ZIP archive containing XML files with encoding UTF-8. Root element taric.table have three attributes: table.name with name of exported table and version.number and version.time with information about export version. Data rows are exported in element row, containing optional attribute change.type with values “I” for new record, “U” for updated and “D” for deleted record (this attribute is missing in full export). Values of the table columns are exported as the other attributes with the same names as the columns. If the column is not present it it considered to be NULL. Definitions of the XML as XSD files for each exported table are in the appendix.
Export example (Notes for goods chapters):
<taric.table table.name="note.to.goods" version.number="2017.123" version.time="2017-12-06T15:13:38.847">
<row change.type="I" chapter="01" dat.start="2017-09-19" note.fi="new note for chapter 01 in Finnish"
note.en="new note for chapter 01 in English" note.sv="new note for chapter 01 in Swedish" />
<row change.type="D" chapter="02" dat.start="2017-09-19" note.fi="deleted note for chapter 02 in Finnish" />
<row change.type="U" chapter="03" dat.start="2017-09-19" dat.end="2017-09-20" note.fi="updated note for chapter 03 in Finnish" note.sv="updated note for chapter 03 in Swedish" />
</taric.table>
Export service methods
Export service provides following methods:
- Method GetLastFullExport for retrieving information about last full data export
- Method GetUpdateList for retrieving list of available updates
- Method GetData for retrieving export data of requested version
First two methods returns information about existing exports: export version number, numer of packages and datetime.
Data itself can be retrieved by the third method. Exports are not retrieved as whole zip file (full export has over 100 MB), but zip files are split into small packages with the same byte size. So third method requires export version number and number of the required package. Method must be called repeatedly to obtain all packages, which should be joined together to create valid zip archive.
Expected scenarios of service ussage
Expected scenario when client wants to create new TARIC repository:
- call method GetLastFullExport to gain the last full export version number and number of parts;
- call method GetData with this version number repeatedly to obtain current full export, then merge parts into zip archive and process it;
- then call method GetUpdateList with previous full export version as input parameter to obtain list of update versions;
- then call method GetData repeatedly for each version from obtained list and process received update archives.
Expected scenario to keep the TARIC repository up to date:
- repeatedly (e.g. once every work day) call method GetUpdateList to ask for available updates sending last processed version as input parameter;
- then call method GetData repeatedly for each version from obtained list and process received update files.
Alternative scenario to keep the TARIC repository actual:
- repeatedly (once a month) call method GetLastFullExport to ask for last available full export;
- if this version is newer than the last processed, call method GetData to gain current full export and process it.
Client does not need to process update files in this scenario.
TARIC Tables
Table content |
XML file name |
Note to goods code |
note.to.goods |
Duty type for measure |
duty.type.for.measure |
Preference for measure |
preference.for.measure |
Preference code |
preference |
Footnote type |
footnote.type |
Footnote type description |
footnote.type.description |
Certificate type |
certificate.type |
Certificate type description |
certificate.type.description |
Additional code type |
additional.code.type |
Additional code type description |
additional.code.type.description |
Measure type series |
measure.type.series |
Measure type series description |
measure.type.series.description |
Regulation group |
regulation.group |
Regulation group description |
regulation.group.description |
Regulation role type |
regulation.role.type |
Regulation role type description |
regulation.role.type.description |
Publication sigle |
publication.sigle |
Footnote |
footnote |
Footnote description period |
footnote.description.period |
Footnote description |
footnote.description |
Certificate |
certificate |
Certificate description period |
certificate.description.period |
Certificate description |
certificate.description |
Measurement unit |
measurement.unit |
Measurement unit description |
measurement.unit.description |
Measurement unit qualifier |
measurement.unit.qualifier |
Measurement unit qualifier description |
measurement.unit.qualifier.description |
Monetary unit |
monetary.unit |
Monetary unit description |
monetary.unit.description |
Duty expression |
duty.expression |
Duty expression description |
duty.expression.description |
Measure type |
measure.type |
Measure type description |
measure.type.description |
Additional code |
additional.code |
Additional code description period |
additional.code.description.period |
Additional code description |
additional.code.description |
Footnote association - Additional code |
footnote.association.additional.code |
Geographical area |
geographical.area |
Geographical area description period |
geographical.area.description.period |
Geographical area description |
geographical.area.description |
Geographical area membership |
geographical.area.membership |
Goods nomenclature group |
goods.nomenclature.group |
Goods nomenclature group description |
goods.nomenclature.group.description |
Complete abrogation regulation |
complete.abrogation.regulation |
Explicit abrogation regulation |
explicit.abrogation.regulation |
Base regulation |
base.regulation |
Modification regulation |
modification.regulation |
Prorogation regulation |
prorogation.regulation |
Prorogation regulation action |
prorogation.regulation.action |
Full temporary stop regulation |
full.temporary.stop.regulation |
FTS regulation action |
fts.regulation.action |
Regulation replacement |
regulation.replacement |
Measure condition code |
measure.condition.code |
Measure condition code description |
measure.condition.code.description |
Measure action |
measure.action |
Measure action description |
measure.action.description |
Quota order number |
quota.order.number |
Quota order number origin |
quota.order.number.origin |
Quota order number origin exclusions |
quota.order.number.origin.exclusions |
Quota definition |
quota.definition |
Quota association |
quota.association |
Quota blocking period |
quota.blocking.period |
Quota suspension period |
quota.suspension.period |
Quota extended information |
quota.extended.information |
Ceiling |
ceiling |
Goods nomenclature |
goods.nomenclature |
Goods nomenclature indents |
goods.nomenclature.indents |
Goods nomenclature description period |
goods.nomenclature.description.period |
Goods nomenclature description |
goods.nomenclature.description |
Footnote association - goods nomenclature |
footnote.association.goods.nomenclature |
Nomenclature group membership |
nomenclature.group.membership |
Export refund nomenclature |
export.refund.nomenclature |
Export refund nomenclature indents |
export.refund.nomenclature.indents |
Export refund nomenclature description period |
export.refund.nomenclature.description.period |
Export refund nomenclature description |
export.refund.nomenclature.description |
Footnote association - ERN |
footnote.association.ern |
Measure |
measure |
Measure component |
measure.component |
Measure condition |
measure.condition |
Measure condition component |
measure.condition.component |
Measure excluded geographical area |
measure.excluded.geographical.area |
Footnote association - measure |
footnote.association.measure |
Measure partial temporary stop |
measure.partial.temporary.stop |
For further details about TARIC data and TARIC principles see web European Commission please: