# Tullage: sources and freshness

Data date 2026-11-06, newest allocation 2026-11-06T14:26:55, data version 2026-11-06.617393.

## Source

- Swedish Customs (Tullverket), Tariff File Distribution (Tulltaxan Fildistribution), https://distr.tullverket.se/tulltaxan/xml/. Swedish Customs publishes the EU TARIC database as PGP-signed XML: a weekly full file and one diff per weekday, at about 23:00 Stockholm time.
- Every file is checked against Tullverket's published key (https://distr.tullverket.se/tulltaxan/Tulltaxan_Fildistribution.asc), fingerprint 4101 60CE 25CE C2FF 3227 84E7 302A C3C1 D0E3 E1C9, before it is read. A file that does not verify is refused, and a changed key stops the refresh until a person confirms it. This build: 37 of 37 files verified.
- The build applies the full file of 2026-11-02 and the daily diffs dated on or after it (2026-11-02, 2026-11-03, 2026-11-04, 2026-11-05, 2026-11-06). The critical flag is read from the diffs, because the full file trails it.
- The European Commission's TARIC quota pages are the official reference, but their robots.txt disallows automated access, so they are never fetched. Balances can lag the Commission by up to a day.

## What is covered

- 14,364 quota definitions across 2,013 order numbers, with 617,393 balance events. History starts on 2019-01-01.
- First-come, first-served quotas only: the ones TARIC keeps balances for. Quotas managed by import licences (order numbers 09.4xxx) have no balances in TARIC and are not here.
- quotas_for answers from 2026-01-01 on; codes are read in the CN valid on 2026-11-06.
- changes_since keeps 35 days of changes, keyed by the day Tullverket published them.

## Freshness

Every answer carries as_of.data_date, as_of.weekdays_behind (weekday files after the data date that have not been applied, today excluded) and as_of.stale, which turns true above 2. On a normal weekday morning the data date is the previous weekday; over a weekend it is Friday. A question about today, or any day since the data date, is answered from the newest data and says so.

## Integrity

- Event chain: 99.97 % of 599,445 links have an opening balance equal to the previous closing balance. The 173 breaks are reported, not hidden: returns and carry-overs legitimately raise a balance between events. Refresh fails if consistency drops below 99.9 %.
- Frozen oracle vectors, each citing its source (the Commission's figures, Regulations (EU) 2026/1457 and 2025/2614, and Tullverket records), run on every refresh; a failing vector stops the swap to new data.

## Reading the numbers

- initial_volume is the volume first opened, as in the regulation; volume is TARIC's current volume after any raise or cut, and balance and drawn_share are measured against it.
- A positive balance is not a promise of allocation: requests on the same day are allocated pro rata, and allocation follows release for free circulation.
- Tullverket states no licence for its files. Tullage reuses them as public sector data made available for reuse (Swedish Act 2022:818) and, for the TARIC content, under Commission Decision 2011/833/EU, serving derived answers per quota with attribution, never the source files. Automated and unreviewed; not binding tariff information: only the customs authority's decision binds.
