EORI vs VAT number: how to map a freight party
An EORI identifies an operator for customs purposes; a VAT number identifies a party for VAT purposes. A carrier code identifies a record in your own system. Store the type, issuer and party role before sending any of them to a partner.
Validate the party, not just the string.
The European Commission’s EORI guidance describes the customs identifier. The Commission’s VIES guidance describes checking VAT registration for intra-EU transactions. Keep the identifiers in separate fields even if they look similar, and do not infer one from the format of the other.
For each identifier, preserve the original value, source system, issuing jurisdiction and last verification result. A syntactically valid value is not proof of registration or of authorisation to act for the shipment.
The invoice recipient and customs declarant are different companies.
In a synthetic shipment, the ERP contains the buyer’s VAT number and TMS data names another party as the declarant. The customs export should resolve that role against the relevant customs identity, not fill a missing EORI with the buyer’s VAT number. Retain the buyer’s VAT number for its intended billing workflow.
Keep missing, mismatched and unavailable distinct.
- Test a validly formatted identifier belonging to the wrong entity or role. Send the mismatch to the relevant owner.
- Preserve leading zeroes and type-specific validation. Do not copy transformations between identifier schemes.
- If a verification service cannot respond, record verification as unavailable and retry or review; do not mark the identifier valid or invalid from the outage.