Knowledge / Customs Procedures

Wrong Customs Office of Exit Code - How to Fix the Error in an Export Declaration

Updated: March 2026Reading time: ~7 min

A wrong customs office of exit code is one of the most common causes of an unclosed MRN - and one of the easiest to overlook. A single mistake in the office code sends the export declaration to the wrong customs office, which cannot see the container at “its” port. The MRN stays open, the export confirmation export confirmation never arrives, and the exporter loses the right to apply the 0% VAT rate.

How Does the Customs Office of Exit Code Work?

In the export declaration (IE515 message in the AES system), the exporter or customs agent declares through which customs office the goods will leave the EU customs territory. This is the customs office of exit code.

The code follows a standard EU format and is published in the European Commission's database. It consists of a country code (2 letters) and an office identifier (6 alphanumeric characters). For seaports, a single port may have several codes - each corresponding to a different customs branch or terminal.

The customs system uses this code to route the declaration: after the goods are released, information about the export is automatically forwarded to the declared office of exit. That office then expects the goods to physically arrive. Once the goods appear and the vessel departs - the office closes the MRN.

The problem: If the code is wrong, the declaration is routed to an office in whose jurisdiction the container will never appear. The office does not see the goods, so it does not confirm the export. The MRN remains open.

What Are the Most Common Mistakes?

  • Wrong country - the exporter declared an office in Germany, but the goods left through the Netherlands (Rotterdam). Or the reverse: the Netherlands was declared, but the container was rerouted to Hamburg.
  • Wrong branch within a port - large ports (Hamburg, Rotterdam, Antwerp) have multiple customs branches. Confusing one with another means the correct branch does not see the declaration.
  • Outdated code - after customs administration reorganizations (e.g., mergers of offices or code changes following the AES PLUS rollout), a previously valid code may no longer be active.
  • Manual entry error - a single transposed digit or letter routes the declaration to an entirely different office. This is a surprisingly frequent issue when declarations are filled in manually.
  • Container diversion - the container was supposed to sail via Rotterdam, but the shipping line rerouted it to Hamburg (e.g., due to port congestion). The office code in the declaration corresponds to Rotterdam, but the goods actually exited through Hamburg.
Don't want to handle this yourself? Submit your MRN closure - request a quote

How to Fix a Wrong Exit Office Code

The procedure depends on the stage of the export:

Before the Goods Leave the EU

If the goods have not yet left the port, the correction is relatively straightforward. The customs agent can file a request to amend the export declaration (change the exit office code) with the customs office where the original declaration was submitted. The new routing is applied automatically.

After the Goods Have Left the EU

This is the more difficult scenario - the goods have already sailed, but the MRN is open. Fixing it requires:

  1. Determining through which port the goods actually exited
  2. Filing a correction to the declaration with the correct exit office code
  3. Registering the export in the appropriate port system (if this was not done)
  4. Monitoring the processing of the correction by the customs system

In this scenario, access to port systems at the actual port of exit is critical - without it, there is no way to confirm that the container has left the EU.

How we help: We fix wrong exit office codes regularly - it is one of the most common cases we handle. We have access to port systems in Hamburg, Rotterdam, Antwerp, and Bremerhaven, so we can quickly determine the actual route and correct the data. Submit an order.

How to Avoid Exit Office Code Errors

  • Verify the code before submitting the declaration - check the current customs office code for the destination port in the European Commission's database or in the national customs system
  • Confirm the exit port with the freight forwarder - make sure you know through which port the goods will actually leave (not just the planned port, but the confirmed routing)
  • Account for diversion risk - shipping lines may reroute containers to a different port. Monitor the booking and react when the loading port changes
  • Use templates - if you regularly export through the same ports, create declaration templates with the correct codes

Frequently Asked Questions

Can the customs office of exit code be changed after the declaration has been submitted?

Yes - the AES system allows corrections to the export declaration, including the customs office of exit code. The correction requires filing a request with the customs office where the original declaration was submitted. The sooner it is done, the easier - a correction before the goods leave the EU is simpler than a retroactive one.

How do I find the correct customs office of exit code for a port?

EU customs office codes are published in the official COL (Customs Office List) maintained by DG TAXUD of the European Commission. For seaports, a single port may fall under several customs branches. If in doubt, contact a customs agent at the destination port or let us verify it for you.

My MRN is open because of a wrong exit office code - can this be fixed?

In the vast majority of cases, yes. We handle these situations regularly - we correct the exit office code and register the export in the proper port system. Even if several months have passed since the export, retroactive closure is usually possible.

What are the consequences of a wrong customs office of exit code?

The error itself is not penalized. However, the consequence is an open MRN and the absence of a export confirmation - which means no entitlement to the 0% VAT rate. In the event of a tax audit, the authorities may impose a VAT correction (standard 23% rate) with interest.

Related Articles

Wrong exit office code? We will fix it.
Send us your MRN - we will check whether the customs office of exit code is correct and close the MRN in the proper port system.
Check my MRN →

Need to close your MRN?

We cover 8 European ports. Average filing time 32 minutes, 2h order acceptance guarantee.