Importing and exporting: EORI, DUA and customs
Last updated 15 October 2026 · Reviewed by Jaime Piñeira Pardo, lawyer registered with the ICAM bar, no. 138826 · English version of our Spanish guide.
The short answer
To trade goods with countries outside the European Union you need an EORI number (compulsory registration with the AEAT, Spain's tax office) and a customs declaration: the H1 import declaration or the export declaration through the AES system (colloquially, the export DUA). If your NIF does not start with N, M, X or Y, the AEAT assigns your EORI automatically (ES + NIF) when your first declaration is lodged; with an N, M, X or Y NIF you have to apply for it. The customs declaration is lodged by your company or by a registered customs representative; we prepare the classification, the customs value, the duty and VAT calculation and the documents, and we apply for your EORI when an application is needed.
We handle the whole procedure for you, from start to finish.
You describe your case in a chat and sign; we file it with the Spanish authorities. Fixed price from €120.00 (21% VAT included), plus the tasa (official fee) where there is one.
What is new, and the law that applies
- H1 system compulsory on imports since 14 October 2025: the import declaration is filed as a structured electronic message adapted to the Union Customs Code (Reglamento (UE) 952/2013), replacing the classic import DUA with boxes, which was closed for good that day. The new Union Customs Code (Reglamento (UE) 2026/2108) will apply generally from 21 September 2027; until then Reglamento (UE) 952/2013 still applies, with some specific exceptions.
- Exports through the AES system (P1 declaration): exports also stopped being filed with the DUA boxes. AES is the only system available since 9 May 2023 and entered its definitive period on 15 December 2025: every export declaration accepted from that day must be in the definitive period format. It is still customarily called the export DUA, but it is an electronic message adapted to the Union Customs Code.
- Low-value consignments: they are declared with the H7 data set, within the same UCC electronic customs environment. Since 1 July 2026 the customs duty relief for consignments of up to €150 no longer exists (Reglamento (UE) 2026/382) and, until 1 July 2028, distance sales of those consignments pay a fixed duty of €3 per category of items (according to the Commission, items sharing the same tariff classification). From 1 November 2026 the €2 Union handling fee will also apply to distance sales released for free circulation.
- Deferred import VAT for 2027: the option (or the waiver of it) is exercised through the modelo 036 during November 2026; once chosen, it is automatically extended and the waiver applies for a minimum of three years.
- VAT rates in force as at 17 July 2026: standard 21%, reduced 10% and super-reduced 4%; the one that applies depends on the goods imported.
What are the EORI, the DUA and the customs declaration?
The EORI number (Economic Operators Registration and Identification) is a single number valid throughout the customs territory of the European Union that customs assigns to anyone carrying out foreign trade operations. It identifies you in any procedure before EU customs authorities. In Spain it is made up of the prefix ES followed by your NIF (Spanish tax identification number).
The DUA (Documento Unico Administrativo, the Single Administrative Document) was for years the customs declaration for any goods entering or leaving the customs territory of the Union, that is, in operations with non-EU countries. The classic import DUA was closed for good on 14 October 2025: imports are now declared with the H1 declaration as a general rule (and, depending on the case, H7 or others) and exports through the AES P1 system. The declaration records who the operator is, what the goods are (tariff classification), their value, their origin and the customs procedure requested.
Since 14 October 2025, the import declaration in Spain is filed using the H1 system, a structured electronic message adapted to the Union Customs Code. In practice it is still the import customs clearance: what changes is the format (electronic messages instead of the classic form with boxes). Exports also stopped being declared using the DUA boxes: since 9 May 2023 they are filed through the AES P1 system, likewise an electronic message adapted to the Union Customs Code, with the definitive period running from 15 December 2025. It is still customarily called the export DUA but, as with imports, it is no longer a form with boxes but an electronic message.
Who needs an EORI number?
An EORI is needed by any company, autonomo (self-employed worker registered in Spain) or entity carrying out customs operations: importing goods from outside the EU, exporting to non-EU countries, or any related customs procedure. Every customs declaration by an operator carries its EORI. If your NIF does not start with N, M, X or Y, the AEAT assigns it automatically (ES + NIF) when your first declaration is lodged, without you having to apply; with an N, M, X or Y NIF you must apply for it beforehand.
The EORI is not the same as the NIF-IVA (Spanish VAT number) or as registration in the VIES (which is used for intra-Community operations, within the EU). Nor is it the Authorised Economic Operator (OEA) certificate, which is voluntary and additional. All operators need an EORI; only some apply for OEA status.
Private individuals making an occasional import for personal use are, as a general rule, not obliged to obtain an EORI. Anyone importing in the course of their business activity is an economic operator and must have an EORI (articles 5 and 9 of the Union Customs Code).
How do you apply for an EORI number with the AEAT?
If your NIF does not start with N, M, X or Y, you do not need to apply: the AEAT registers you in the EORI system automatically when you lodge your first customs declaration, although you may apply earlier if you prefer. If your NIF starts with N, M, X or Y, you must apply at the electronic office of the Agencia Tributaria (the AEAT) through procedure DC13, or in writing at any customs office. The application is handled by the Regional Customs Unit (Dependencia Regional de Aduanas), which may ask for further documents; there is no fee and no official decision period.
If you are an operator established in Spain, you must first have a NIF assigned by the AEAT; your EORI is built on that NIF (ES + NIF). If you already have an EORI assigned by another Member State, you can notify Spanish customs so that it is linked to your NIF in Spain. Operators not established in the EU that have no NIF apply with a form at customs and receive an EORI in the format ES + K.
Once assigned, the EORI can be validated in the European Commission system, which confirms that it is an active number and valid throughout the EU. When an application is needed, Managora files it under your authorisation, follows it up and checks the validation before your first operation.
How are the DUA and the H1 import declaration filed?
Both imports (H1) and exports (AES P1) are filed online at the AEAT electronic office, through the electronic customs system. It is not a paper form handed in over a counter: it is an electronic message that customs validates automatically.
On imports, the declaration includes the classification of the goods by their TARIC code, the customs value, the origin and the procedure requested (usually, release for free circulation and for consumption). With that data customs assesses the customs duties and the import VAT.
When the declaration is accepted and the duties are paid or guaranteed, customs grants the levante (customs release), which is the authorisation to collect the goods (on import) or to load them (on export). The declaration is lodged by your company or by a registered customs representative; Managora prepares the declaration data and checks the assessment.
How are import VAT and customs duties calculated?
The customs duty (import duties) is calculated by applying to the customs value the percentage corresponding to the TARIC code of the goods. The customs value is, as a general rule, the transaction value (the price paid), to which costs such as transport and insurance up to the point of entry into the Union are added.
Import VAT is calculated on a base made up of the customs value, the customs duty and the incidental costs (such as transport and insurance up to the first place of destination within the EU), and the rate corresponding to the goods is applied (21% standard, 10% reduced or 4% super-reduced). It is settled together with the customs clearance.
Businesses and professionals with a monthly filing period can opt for deferred import VAT: instead of paying the VAT at customs, they declare it on the modelo 303 for the period (box 77) and deduct it in the same return, with a neutral cash flow effect. It requires filing VAT returns monthly (large business, registered in the REDEME monthly refund register or a VAT group) and exercising the option with the modelo 036 in November of the previous year: from 1 to 30 November 2026 for it to apply from 1 January 2027. Any amounts not included in the return go straight to enforced collection.
What does a customs representative do, and what is Managora's role?
The customs representative is the person who files the declaration with customs on behalf of the operator. They can act in direct representation (in the name of and on behalf of the client: the client is the debtor, but the representative is responsible for the accuracy of the data and documents it lodges) or in indirect representation (in their own name and on behalf of the client, being liable for the debt together with the client).
To practise, the representative proves the required qualification and is listed in the AEAT Register of Customs Representatives (Registro de Representantes Aduaneros). They must be established in the customs territory of the Union, except when acting on behalf of persons who are not required to be established there. In Spain, anyone who wishes to be represented to lodge customs declarations must use a registered customs representative; otherwise the company declares itself, and a company does so electronically and may only authorise its directors or employees on a permanent contract for that purpose.
Managora is not a customs representative and does not lodge customs declarations. The customs declaration is lodged by your company or by a registered customs representative; we prepare everything else: we apply for your EORI when an application is needed, classify the goods in the TARIC, calculate the customs value, duties and VAT, review the documents, handle the deferred import VAT option (modelo 036) and the modelo 303 and, if customs issues an assessment or a penalty, file the submissions, appeal or claim on your behalf.
Step by step
- 1
Registration as an operator and NIF
The company or autonomo must be registered with Hacienda (the Spanish tax authorities) and have a NIF assigned by the AEAT. It is the starting point on which the EORI is built in Spain (ES + NIF).
- 2
Check or apply for the EORI number(No official timescale: the DC13 page refers to the applicable legislation)
If your NIF does not start with N, M, X or Y, the AEAT assigns your EORI automatically (ES + NIF) with your first declaration. With an N, M, X or Y NIF, you apply at the AEAT electronic office (procedure DC13) or link the EORI of another Member State. The EORI is unique and valid throughout the Union.
- 3
Classify the goods (TARIC code)
Each product has a TARIC code that determines the applicable customs duty and any restrictions or requirements. Correct classification avoids incorrect assessments and blockages at customs.
- 4
Gather the documentation for the operation
Commercial invoice, transport document, proof of origin where applicable, licences or certificates required for the product, and value and freight data.
- 5
File the customs declaration
Imports through the H1 declaration and exports through the AES P1 system (colloquially, the export DUA), both filed online at the AEAT electronic office (electronic customs). They are lodged by your company or by a registered customs representative; Managora prepares them for you.
- 6
Settle customs duties and import VAT
Customs assesses the customs duties and the import VAT. The VAT can be deferred to the modelo 303 (box 77) if the importer files VAT returns monthly and opted for deferral in November of the previous year.
- 7
Obtain the levante and collect the goods
After the declaration is accepted and the debt is paid or guaranteed, customs grants the levante, which authorises collecting the goods (import) or loading them (export).
A worked example
A company imports goods from a non-EU country. Transaction value (price paid): €10,000. Transport and insurance up to the point of entry into the EU: €800. Customs duty according to the TARIC code: 5%. VAT rate applicable to the goods: 21%. Illustrative figures: the actual customs duty and rate depend on the TARIC code of each product.
- Customs value = 10,000 + 800 = €10,800 (transaction value plus transport and insurance up to entry into the EU)
- Customs duty = 5% of 10,800 = €540
- VAT taxable base = customs value + customs duty + incidental costs after entry into the EU = 10,800 + 540 + 0 = €11,340 (in this case there are no additional incidental costs; where they do exist, transport and insurance up to the first place of destination within the Union are also added to the base under article 83 of the Ley del IVA)
- Import VAT = 21% of 11,340 = €2,381.40
- Total duties and taxes to be settled at customs = 540 + 2,381.40 = €2,921.40
€540 of customs duty and €2,381.40 of import VAT are settled (€2,921.40 in total). If the company is under deferred VAT, those €2,381.40 are not paid out at customs: they are declared and paid and at the same time deducted on the modelo 303 for the period (box 77).
Customs declaration by type of operation (2026)
| Operation | Declaration / system | Filing |
|---|---|---|
| Import (release for free circulation) | H1 declaration (UCC, electronic message) | Online at the AEAT electronic office (electronic customs) |
| Export | AES P1 system (electronic message); colloquially, the export DUA | Online at the AEAT electronic office (electronic customs) |
| Low-value consignments | H7 data set | Online at the AEAT electronic office (electronic customs) |
| Transit | Transit declaration (NCTS) | Online at the AEAT electronic office (electronic customs) |
Cost components of an import from outside the EU
| Item | How it is determined | Who sets it |
|---|---|---|
| Customs value | As a general rule, the transaction value (the price paid) plus transport and insurance up to the point of entry into the EU | Union Customs Code |
| Customs duty (import duties) | Percentage of the customs value according to the TARIC code of the goods | Common Customs Tariff / TARIC |
| Import VAT | Rate (21%, 10% or 4%) on the base: customs value + customs duty + incidental costs | Ley del IVA, the Spanish VAT Act (AEAT) |
| Other taxes | Excise duties or other charges depending on the type of product | Product-specific legislation |
Import VAT: payment at customs or deferred VAT
| Payment at customs (general regime) | Deferred VAT (box 77) | |
|---|---|---|
| When the VAT is paid | At customs clearance, together with the customs duties | On the modelo 303 for the period, with no cash outlay at customs |
| Requirements | None in particular | Being a business or professional filing VAT returns monthly (large business, REDEME or VAT group) |
| How it is activated | No option required | By ticking box 530 of the modelo 036, in November of the previous year (from 1 to 30 November 2026 for 2027) |
| Cash flow effect | You pay the VAT up front until you can deduct it | Neutral: it is declared and deducted in the same return |
| Where it appears | Paid at customs with the clearance | Box 77 of the modelo 303/322 |
Official forms and where it is filed
- Application for EORI number registration (procedure DC13, AEAT electronic office) ↗
- H1 import declaration and export declaration through the AES/P1 system (online filing, AEAT electronic office - electronic customs) ↗
- Modelo 036 - census declaration (option for deferred import VAT, box 530)
- Modelo 303 - VAT self assessment (deferred import VAT, box 77)
- Import VAT with deferred payment enquiry (AEAT electronic office - Customs)
- EORI number validation (European Commission) ↗
Frequently asked questions
Do I need an EORI if I am only going to import once?
If you are a company or an autonomo and you carry out the operation as part of your business activity, yes: the customs declaration carries your EORI. If your NIF does not start with N, M, X or Y, you do not need to apply: the AEAT assigns it automatically (ES + NIF) with that first declaration. A private individual importing occasionally for personal use is not an economic operator and, unless otherwise provided, is not required to register.
How long does it take for an EORI number to be assigned?
There is no official timescale: the DC13 procedure page refers to the applicable legislation. If your NIF does not start with N, M, X or Y, there is nothing to wait for, because the AEAT assigns it automatically with your first declaration. With an N, M, X or Y NIF, the application is handled by the Regional Customs Unit, which may ask for documents before deciding; Managora files it under your authorisation and checks the EORI validation before your first operation.
Is there any tasa for EORI registration?
Registering the EORI number with the AEAT does not carry a tasa (official fee). The costs of an import are the customs duties, the import VAT and, where applicable, the fees of whoever prepares and lodges the declaration. You can see the up-to-date price of the Managora service on the service page.
Can I defer payment of import VAT?
Yes. Businesses and professionals filing VAT returns monthly (large business, REDEME or VAT group) can opt for deferred import VAT: they declare it on the modelo 303 (box 77) for the period in which they receive the assessment, instead of paying it at customs. The option is exercised with the modelo 036 in November of the previous year (from 1 to 30 November 2026, taking effect on 1 January 2027), and anything not included in the return goes straight to enforced collection.
Do I still use the DUA or is it now the H1 system?
On imports, the classic DUA was closed on 14 October 2025: since then the general import declaration is the H1, adapted to the Union Customs Code. On exports the AES P1 system is used, which since 9 May 2023 also replaced the DUA boxes with an electronic message; it is still customarily called the export DUA. In both cases it is an online filing at the AEAT electronic office made by your company or by a registered customs representative; Managora prepares it for you.
Do I have to engage a customs representative?
Not necessarily. The customs declaration is lodged by your own business (self-clearance: a company files electronically and can only authorise its directors or employees on a permanent contract to do so) or by a customs representative registered with the AEAT, in direct or indirect representation. Managora is not a customs representative: we prepare the classification, the customs value, the origin, the duty and VAT calculation and the documents so that the declaration can be lodged without delays.
We handle the whole procedure for you, from start to finish.
You describe your case in a chat and sign; we file it with the Spanish authorities. Fixed price from €120.00 (21% VAT included), plus the tasa (official fee) where there is one.
Related procedures
The price, the tasa (official fee) and the current deadlines are on each procedure page.
- EORI number for non-residents and NIF N, M, X or Y holdersIf your Spanish NIF starts with N, M, X or Y, the AEAT does not assign your EORI number automatically: you ...
- Import study for your goods: TARIC code, duties, VAT and controlsBefore you buy, we tell you in writing how much it will cost to import your goods and what customs will req...
- OEA: Operador Económico Autorizado (AEO customs certification)OEA certification (Operador Económico Autorizado / Authorised Economic Operator, AEO): Regulation (EU) 952/...
Related guides
- What you need to import goods into Spain: customs controls, licences and registrations by product type
- TARIC commodity code, preferential origin and anti-dumping: how to pay the right customs duty with BTI, BOI, REX and EUR.1
- CBAM: the carbon border adjustment if you import
- Exporting outside the EU: VAT, customs declarations and proof of exit
- Importing Chemicals into Spain: REACH, CLP Labelling, Drug Precursors and F-Gases
- SOIVRE Import Controls and CE-Marked Products in Spain: Customs, EU Responsible Person (GPSR) and Producer Registers
- Conflict Minerals and the EU Battery Regulation: Due Diligence, Battery Passport and Producer Registration
- Importing food, feed and plants into Spain: border sanitary controls, CHED (DSCE) in TRACES, prior registrations and what happens if a consignment is rejected
Share this guide
If you found it useful, chances are someone you know needs it right now.