A REX number (Registered Exporter System) is a mandatory European Union customs identifier that authorizes exporters to self-certify the preferential origin of goods on commercial invoices via a Statement on Origin for consignments above €6,000. Before claiming reduced or 0% preferential import duty at EU customs, importers must verify that the supplier's REX registration is active in the European Commission's DG TAXUD REX database and retain timestamped verification proof.

Why manual REX lookups fail customs audits: Checking a REX number manually on the Europa portal shows live status on screen, but provides no downloadable signed evidence, no purchase-order linkage, no bulk CSV verification, no API automation, and no change monitoring. If a supplier's REX number is revoked or invalid when customs audits your preferential duty claim 1–3 years later, EU importers face retroactive full MFN customs duties, interest, and administrative penalties.
This complete compliance and engineering guide covers the legal basis of the EU Registered Exporter System, where REX applies worldwide (including FTAs, GSP, UK, Norway, and Switzerland), the exact Statement on Origin invoice wording, VAT vs. EORI vs. REX differences, common verification pitfalls, and automating checks through the VIESAC REX REST API.
1What Is a REX Number & When Is It Legally Required?
The Registered Exporter System (REX) was established under the Union Customs Code (UCC) Implementing Regulation (EU) 2015/2447 (Articles 68–109) to modernize origin certification. Instead of waiting for customs authorities to stamp paper EUR.1 movement certificates or Form A GSP certificates, registered exporters self-certify preferential origin directly on commercial documents.
Under EU customs law, an exporter places a standardized Statement on Origin on an invoice, packing list, or delivery note—quoting their unique REX registration number:
- →The €6,000 Consignment Threshold: Any exporter (in the EU or a qualifying partner country) issuing a Statement on Origin for originating goods with a total value exceeding €6,000 per consignment must hold an active REX number. Below €6,000, any exporter may issue the statement without a REX registration.
- →Replacement Statements on Origin (Re-consignment): EU re-consignors splitting or forwarding originating goods inside the Union also require a REX number if the original consignment exceeded €6,000, enabling them to issue replacement statements on origin.
- →Importer Liability Under Post-Clearance Audits: Under the UCC, the EU importer claiming preferential duty bears legal responsibility for verifying that the supplier's REX number was active on the date the Statement on Origin was made out.
A REX identifier always begins with the 2-letter ISO 3166-1 alpha-2 country code of the registering authority, followed by REX, and up to 30 alphanumeric characters (for example: DEREX1234567890, FRREX00112233, or INREX1234567890EC001). Maximum total length is 35 characters. Many EU companies receive a REX number constructed from their EORI number with REX inserted after the country prefix.
2Where REX Applies: EU FTAs, GSP, OCT & EFTA Partners
Unlike EU VIES (which is strictly limited to EU-27 VAT plus Northern Ireland), the REX database covers exporters in both EU Member States and dozens of non-EU partner countries:
| Trade Regime | Countries & Scope | How REX Is Used |
|---|---|---|
| EU Free Trade Agreements (FTAs) | EU–UK TCA, EU–Japan EPA, EU–Canada CETA, EU–Vietnam FTA, EU–Singapore FTA, EU–New Zealand FTA, EU–Chile, ESA, Côte d'Ivoire, Ghana. | EU exporters use EU REX numbers (>€6,000). Partner-country rules depend on the specific agreement (e.g., UK uses GB EORI; Vietnam/GSP partners use REX). |
| Generalised Scheme of Preferences (GSP) | Beneficiary developing countries (e.g., India, Bangladesh, Pakistan, Sri Lanka, Cambodia, Indonesia, Kenya, Nigeria). | Local exporters register in EC REX via their national competent authority to grant EU importers 0% or reduced GSP duty. |
| Overseas Countries & Territories (OCT) | EU-associated OCT jurisdictions (e.g., Greenland, French Polynesia, Aruba, Curaçao). | Mandatory REX registration for Statements on Origin above €10,000 / €6,000 under the OCT Decision. |
| Norway & Switzerland (EFTA GSP) | Mutual GSP recognition with the EU (and replacement statements across EU, Norway, and Switzerland). | Norwegian and Swiss customs also query the EC REX registry to verify GSP origin and issue replacement REX statements. |
3Official Statement on Origin Wording (Annex 22-07 UCC IA)
Having a valid REX number is only half of preferential origin compliance: the commercial invoice or packing list must also carry the exact statutory wording prescribed by the relevant EU trade agreement (for GSP and standard EU agreements, Annex 22-07 of Regulation (EU) 2015/2447):
[Place and date] · [Name and signature of exporter, if required by agreement]
Under bilateral agreements such as the EU–UK TCA or EU–Japan EPA, minor variations apply (for example, indicating the origin criteria code or exporter reference field). Always verify that the REX number printed inside the declaration matches an active record in the DG TAXUD REX registry on the invoice date.
4VAT vs. EORI vs. REX: How the Three EU Identifiers Differ
A common mistake in cross-border procurement and customs brokerage is assuming that an active EU VAT number or EORI number automatically grants preferential origin rights. Each identifier lives in a separate government registry and governs a different legal obligation:
| Dimension | VAT Number | EORI Number | REX Number |
|---|---|---|---|
| Purpose | Taxation, 0% intra-EU B2B reverse charge, VAT returns. | Customs clearance, import/export declarations, transit. | Certifying preferential origin on commercial documents (>€6,000). |
| Official Registry | EU VIES & national tax portals. | EU EOS DDS2 & UK HMRC EORI API. | European Commission DG TAXUD REX System. |
| Geographic Scope | EU-27 + Northern Ireland (XI). | EU-27, GB, XI. | EU-27 + GSP, OCT, FTA & EFTA partner countries. |
| If Missing / Invalid | Disallowed 0% VAT, 19–27% tax clawback. | Shipment held at port, customs declaration rejected. | Preferential tariff denied, full MFN import duty retroactively assessed. |
For complete cross-border compliance, companies importing under preferential trade agreements verify EORI for customs clearance, REX for preferential origin, and VAT for fiscal invoicing.
5Why Official REX Checks Need an Audit-Ready Workflow
When a customs authority conducts a post-clearance verification—often 1 to 3 years after goods entered free circulation—it asks for proof that the exporter's REX number was valid at the time of importation. VIESAC turns an ephemeral lookup into verifiable compliance documentation:
Validates syntax and queries the official European Commission DG TAXUD REX registry in real time, returning active or revoked status and registration metadata.
Every REX audit generates a timestamped PDF certificate and optional public QR online verification link tied to your purchase order, invoice, or MRN reference.
Upload spreadsheets containing hundreds of supplier REX numbers (alongside VAT, EORI, SEED, or SME identifiers) via Bulk Audit in one batch.
Track recurring suppliers in VIESAC Monitoring on a daily, weekly, or monthly schedule and receive instant alerts if a REX registration is suspended or revoked.
6Automating REX Verification via VIESAC REST API
Customs software, ERP master-data pipelines, and import portals can verify REX numbers programmatically before accepting a Statement on Origin or applying preferential tariff rates.
1. Synchronous Instant REX Validation
Use the fast validation endpoint during supplier onboarding or customs form entry:
GET /api/v1/rex/validate?rex=DEREX1234567890
Authorization: Bearer YOUR_VIESAC_API_KEYExample 200 OK JSON response:
{
"rex_number": "DEREX1234567890",
"country_code": "DE",
"status": "valid",
"valid": true,
"source": "EC_REX",
"checked_at": "2026-11-15T13:40:00Z"
}If the syntax is invalid, the API returns 422 Unprocessable Entity (invalid_input); if the upstream EC REX service is temporarily unavailable, it returns 503 Service Unavailable (service_unavailable) so your ERP can safely queue a retry.
2. Creating an Audit-Ready REX Record & PDF Certificate
To store an immutable customs compliance record linked to an invoice or purchase order and generate a downloadable PDF certificate, send a POST request to the unified audits endpoint:
POST /api/v1/audits
Authorization: Bearer YOUR_VIESAC_API_KEY
Content-Type: application/json
{
"type": "rex",
"rex_number": "DEREX1234567890",
"order_number": "PO-2026-4102",
"invoice_number": "INV-ORIGIN-991",
"comment": "Statement on Origin verification for EU-UK TCA shipment"
}3. Python Integration Example
Automatically verify a supplier's REX number and archive the PDF certificate inside your import workflow:
import requests
API_KEY = "viesac_live_your_api_key_here"
HEADERS = {"Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json"}
payload = {
"type": "rex",
"rex_number": "DEREX1234567890",
"order_number": "IMP-2026-778",
"invoice_number": "SUP-INV-5541"
}
response = requests.post("https://viesac.eu/api/v1/audits", json=payload, headers=HEADERS)
data = response.json()
if data.get("status") == "valid":
print("REX Verified:", data.get("rex_number"))
print("Audit PDF URL:", data.get("certificate_url"))
else:
print("REX Validation Failed:", data.get("status"))7Common REX Validation Errors & Troubleshooting
When supplier invoices fail origin verification, the root cause is usually one of four operational issues:
- →Confusing Approved Exporter Numbers with REX: Legacy EU Approved Exporter authorizations (e.g.,
DE/0000/EA/1234orNL/1234/2018) are not REX numbers and will fail DG TAXUD REX lookups. Agreements such as EU–UK TCA and EU–Japan EPA require REX, not legacy Approved Exporter IDs. - →Submitting an EORI Instead of REX: Even though German or Dutch REX numbers resemble EORI numbers with
REXinserted, submitting the raw EORI (DE123456789012) fails format validation. - →Revoked REX After Shipment Departure: A supplier's REX can be revoked by customs if origin audit conditions are breached. Running automated REX monitoring and archiving a dated PDF on the day of invoice issuance protects your audit defense.
- →Data Visibility Settings on EC REX: Some exporters opt out of publishing their full company name and address in the public Europa REX portal. VIESAC still verifies the official active/revoked status directly from the registry.
8Frequently Asked Questions (FAQ)
How do I check if an EU REX number is valid?
You can verify any REX number instantly using the free VIESAC REX Validator, which queries the European Commission DG TAXUD REX system in real time, or create a REX Audit in your account to receive a timestamped PDF certificate.
When is a REX number mandatory on a Statement on Origin?
A REX number is mandatory whenever the total value of originating products in a consignment exceeds €6,000 under EU preferential trade agreements (such as the EU–UK TCA, CETA, EU–Japan EPA) or the EU GSP scheme. Below €6,000, any exporter may issue a Statement on Origin without a REX number.
What is the difference between a REX number and an Approved Exporter number?
Approved Exporter authorizations are older national customs numbers used for traditional invoice declarations under legacy agreements (such as Euro-Med or EU–South Korea). Modern EU agreements (EU–Japan, EU–UK TCA, EU–Vietnam, CETA, GSP) require a REX number registered in the central European Commission REX database.
Can I use an EORI or VAT number instead of a REX number?
No. Although many European REX numbers are derived from a company's EORI number with REX inserted (for example, DEREX...), an EORI registration does not automatically activate REX status. The exporter must explicitly register in the REX system to self-certify preferential origin.
Is a screenshot from the Europa REX website enough for a customs audit?
Manual screenshots lack cryptographic audit metadata, order/invoice linkage, and centralized long-term archiving. During post-clearance audits up to several years later, structured PDF verification certificates and archived API logs in VIESAC provide defensible compliance evidence.
Does REX apply to trade with the United Kingdom, Norway, or Switzerland?
Yes. Under the EU–UK Trade and Cooperation Agreement (TCA), EU exporters shipping originating goods above €6,000 to the UK must include their EU REX number on the Statement on Origin, while UK exporters use their GB EORI number. Meanwhile, Norway and Switzerland participate in mutual GSP recognition and use the EC REX database for GSP origin verification and replacement statements.
What happens if a supplier's REX number is revoked?
Statements on Origin issued before the revocation date generally remain valid unless customs establishes fraud, while shipments made after revocation do not qualify for preferential tariffs. Keeping timestamped VIESAC PDF audits for every shipment and enabling continuous monitoring prevents unexpected duty assessments.
Can I validate hundreds of supplier REX numbers at once or automate checks via API?
Yes. Upload CSV or Excel lists in VIESAC Bulk Audit, schedule automatic re-checks in Monitoring, or integrate directly with GET /api/v1/rex/validate and POST /api/v1/audits.