Customs · Import

Import declaration (DUA)

What the H1 is
The DUA in one sentence

The import DUA is the customs declaration that releases goods arriving from outside the European Union for free circulation in Spain. Today it is an electronic H1 message to the AEAT, the Spanish tax and customs agency, filed by the importer or its customs representative. The goods are released once the debt is paid or guaranteed.

H1 is the data set of the import declaration under the Union Customs Code (UCC). On registration, the AEAT gives it an MRN: the number used to look it up, pay it and provide documents. A company based outside Spain needs an EORI number and, in most cases, a customs representative in Spain to file it.

All about customs → EORI number → Import VAT →
Declaration types

What types of import
declaration are there?

The standard declaration (type A) is the usual one. The simplified declaration is filed with fewer data and completed later; the one pending activation is filed ahead of the goods' arrival.

Additional declaration types for imports according to the AEAT Import UCC guide (v3.20) and the official table H1C1102.
TypeDeclarationWhen it is used
AStandard (DAC)The usual one: all the import data in a single message, with the goods already presented to customs.
PDIIncomplete pre-declarationObtains the MRN with few data. It is then completed with the standard declaration (operation P).
DStandard, pending activation (DPA)Filed before the goods arrive. The operator or customs activates it; until then it has a CRN, not an MRN.
BSimplified (SAC)Fewer data at filing. It is completed later with the supplementary declaration X.
ESimplified, pending activation (SPA)Like the DPA, in simplified form. Types C and F have been closed since 31 December 2023.
XSupplementary to the simplified declarationCompletes a type B simplified declaration that has already been released.
V, ZSupplementary to entries in the declarant's recordsCover goods entered in the declarant's records (I2 notification).
H7Low-value consignmentsA different data set, for e-commerce. It is not a “small H1”.

General information; not customs advice.

Who is involved

Who files the
import DUA?

Importer01

The party that brings the goods into the Union. It is identified by its EORI number (Economic Operators Registration and Identification) and sees the debt in the AEAT online office (Sede). A company based outside the Union needs an EORI number before it can import.

Customs representative02

Files the DUA for the importer. In direct representation it acts in the name and on behalf of the importer; in indirect representation, in its own name but on behalf of the importer (art. 18 of the UCC). Without a clearance authorisation, the AEAT rejects the declaration.

Declarant03

The person in whose name the declaration is filed. In indirect representation, the declarant is the representative itself.

Who pays04

Anyone can pay the debt. Only the importer and the representative that took part in the declaration can view it in the Sede.

Other agencies05

Health, Agriculture or Trade (SOIVRE) issue the control certificates the goods require. The operator requests them in each agency's system and declares them on the item.

How to file

What do you need to file
the import DUA?

You need the importer's EORI number, an electronic certificate and a program that builds the H1 message and sends it to the AEAT's customs web services. Whoever files for others also needs customs clearance authorisation as a representative. Otherwise, a customs representative files it.

Ways to file the import declaration (H1) with the AEAT, according to its index of customs web services and the Import UCC guide.
HowWhat it involvesWho it suits
Customs software connected to the AEATBuilds the H1 message (CC415A) and sends it to the customs web services, signed with an electronic certificate. Before lodging it, it can be validated with the test indicator set to “S”.Customs representatives, freight forwarders and frequent importers.
A customs representativeYou hand over the invoice, the transport document, the packing list and the certificates, and they file the DUA in your name (direct representation) or in their own (indirect).Occasional importers.

General information; not customs advice.

Documents

Which documents does
the import DUA carry?

Declaring a document means entering its code and reference in the header or on the item. Attaching the PDF is something else: it goes through a separate service and does not replace the declared reference.

Sources: Import UCC guide v3.20, H1 supplementary information (annexes 1 and 23) and AEAT notice of 18-09-2025 on code N934.
DocumentHow it enters the H1
Commercial invoiceReference N380, in the header or on the item.
Previous document (temporary storage declaration, DDT, N337)Reference of the temporary storage declaration on each item, with its packages and kilos. Without it, a type A declaration is rejected.
Transport document (B/L, CMR, AWB)Its reference is declared separately. The original is kept in the file.
Packing listOriginal recommended, to match the packages and weights of each item.
Freight, insurance and value adjustmentsValuation data inside the H1, with supporting documents. The old DV1 is no longer filed: its data go in the H1 and code N934 is not declared (AEAT notice of 18-09-2025).
Certificates of origin, licences and controlsCode and reference on the item (group 12 03, the former box 44). If missing at registration, they are provided later with the SUP_DOC service.
Payment letter (form 031) and NRCProof of payment. Attaching it does not grant release.
Other agencies

Which certificates do
other agencies require?

The AEAT checks automatically that the declared certificate exists, belongs to that operator and covers those goods. The operator requests it from the agency and declares its code on the item.

TRACES NTC678 · 1405 Border health (Sanidad Exterior) Food and feed of non-animal origin: common health entry document (CHED, DSCE in Spanish) in TRACES NT, or 1405 if Health finds the control “not applicable”.
TRACES NTC640 · N853 Veterinary Products of animal origin: control at the border control post, requested in TRACES NT. The CHED is declared.
CEXVEGN851 · 1414 Phytosanitary Plants: inspection by Agriculture. N851 is declared, or 1414 if the inspection is not applicable.
PUE1235 · 1236 · C644 SOIVRE Conformity, quality and organic products: requested from Trade through the Single Point of Entry (PUE). Products under RD 330/2008 still use the 1310 from ESTACICE.
From registration to release

How do the goods
get released?
Five steps, from submission to free goods.

  1. Before filing

    Prepare and validate

    The previous document, the invoice and the valuation data are gathered. The AEAT test mode (test indicator “S”) validates the declaration without registering it.

  2. Filing

    Registration and MRN

    The AEAT registers the declaration and assigns it the MRN (movement reference number). If it finds errors, it rejects it with a code, and it is corrected in a new submission.

  3. Acceptance

    Channel

    Green: no control, and the assessment arrives with acceptance. Orange or red: customs checks before release and notifies the debt when it finishes.

  4. Assessment

    Customs debt

    The AEAT recalculates duties and VAT and returns the official assessment, with the payment letter number (form 031) and the payment deadline.

  5. Release

    Goods available

    With the debt guaranteed (payment R) or paid (payment A), the AEAT grants release with its CSV, and the goods are at the importer's disposal.

Scroll
Taxes

Which taxes are paid
on import?

The declaration proposes the taxes for each item; the AEAT recalculates them, and its assessment is the one that counts. A miscalculated figure is a rejection, not an overpayment.

Tax codes from the Import UCC guide and annexes 2 and 38 of the H1 supplementary information (v3.26, 14-10-2026).
CodeTaxHow it is calculated
A00Customs dutySpecific, ad valorem or mixed, according to the TARIC measure for the item.
A30Anti-dumping dutyOnly when TARIC imposes it on that product and that origin.
F00Union handling fee€2 per item on distance sales of imported goods, from 1 November 2026, also above €150. It is part of the VAT base.
B00Import VATOn the customs value plus the duty. With deferred VAT it is not paid at customs: it is declared in form 303.
1PLTax on non-reusable plastic packaging€0.45 per kilo of non-reusable plastic in the goods.

General information; the rates for each product come from TARIC.

Paying the debt

How and when is it paid?

Ten calendar days from notification of the debt, or thirty if it was guaranteed (art. 108 of the UCC). One payment method per declaration; payment from the AEAT online office (Sede) or at a bank.

  • A Payment before release No release until paid. When paid online, release is generated automatically.
  • R Deferred payment With a guarantee (box 52): release without waiting for payment.
  • J No guarantee Only for public bodies and the cases the rules provide for.
  • Sede Direct debit From “Pagos y consultas de comercio exterior” (foreign trade payments and queries): the bank returns the NRC immediately.
  • Sede Card or Bizum Through the Sede payment gateway, also with the NRC immediately.
  • Bank Collaborating bank With the 031 payment letter printed from the Sede. With payment before release, the payment must be notified in the Sede or the receipt taken to customs.
Common errors

Why does the AEAT reject
an import DUA?

Rejections repeat, and almost all can be checked before sending: previous document, consistency between header and items, and representation.

AEAT error codes for the import declaration (“Reglas y Condiciones Importación CAU”, rules and conditions, V4.10). The AEAT returns them in the errorReason field of its response.
CodeWhat it meansHow to avoid it
20202Previous document missing in a type A declarationDeclare the DDT (N337) or another previous document on each item.
21151The status of the summary declaration or the DDT prevents the operationCheck that the DDT is available before filing.
21370Wrong format of the N337 referenceCopy the DDT reference exactly as the AEAT gives it.
21362 · 21162Packages or kilos in the N337 differ from those on the itemSplit the DDT packages and kilos across the items.
25602Container indicator inconsistent with the containers declaredIf there are containers, the indicator is 1 and each container carries its items.
10309Representation without clearance authorisationCheck the representative's authorisation before sending.
50426Nature of transaction declared at two levelsA consignment data element goes in the header or on every item, never both.
2812Ad valorem base wrongly calculatedRecalculate the base on the customs value of the item.
80700Attempt to amend a declaration that cannot be amendedA standard declaration already accepted is not changed with an amendment (operation M).
Frequently asked questions

What people ask before clearing an import.

DUA and H1, MRN, payment deadlines, prior validation, amendments, missing certificates, deferred VAT and the former DV1.

Import VAT → →
Are the DUA and the H1 declaration the same thing?

In practice, yes. DUA (documento único administrativo, single administrative document) is the long-standing name of the customs declaration. Since the Union Customs Code (UCC, Regulation 952/2013), imports are filed as an electronic message with the H1 data set, not as a paper form.

What is the MRN of an import DUA?

The movement reference number the AEAT assigns when it registers the declaration. It is used to look the declaration up, pay it and provide documents. Before registration, the declaration only has the LRN (a local reference of up to 22 characters set by the filer). A declaration pending activation has a CRN, which matches the MRN it will have once activated.

How long is there to pay the duties and VAT on an import?

Ten calendar days from notification of the debt, or thirty if it was guaranteed (art. 108 of the UCC). The AEAT gives the exact date in the assessment. After the deadline, enforced collection begins.

Can a DUA be checked before it is filed?

Yes. The AEAT accepts the same message with the test indicator set to “S”: it validates the declaration against its rules and returns the errors without registering it.

Can an import DUA be amended or cancelled after filing?

An accepted standard declaration cannot be amended with a new amendment message: the AEAT replies with error 80700. What can be amended or cancelled, while still pending, is an incomplete pre-declaration or a declaration pending activation.

What happens if a certificate from another agency is missing at filing?

The AEAT registers the declaration without release and states which documents it requires on each item. The operator provides them later with the SUP_DOC service; once all are in, the AEAT grants release.

Is import VAT always paid at customs?

No. A business authorised for deferred VAT (art. 167.Dos of the Spanish VAT Act) does not pay it at customs: it declares it in its VAT return, form 303. The AEAT response shows it separately from the amount to pay.

Is the DV1 still required?

No. The data of the former valuation declaration are part of the H1, and since the AEAT notice of 18 September 2025 code N934 cannot be declared.

What software do you need to file an import DUA?

A program that builds the H1 message (CC415A) and sends it to the AEAT's customs web services with an electronic certificate. Customs representatives and freight forwarders use one; occasional importers usually hand it to a representative. Either way, the importer needs an EORI number.

Editorial review: Cofactu team · 25 October 2026. Reviewed against the AEAT Import UCC guide v3.20 and the H1 supplementary information v3.26. General information, not customs advice. Sources: AEAT · Import UCC guide · AEAT · H1 supplementary information · AEAT · Paying debts from customs declarations · BOE · Resolution of 11-07-2014 on the DUA · EUR-Lex · Regulation (EU) 952/2013 (UCC) · AEAT · N934 notice (18-09-2025) · AEAT · Union handling fee (14-10-2026) · AEAT · Customs web services.

CN code finder · Customs · Import VAT · EORI number · ICS2 and ENS · NCTS transit · Export and AES · Cofactu for freight forwarders · Form 303

Source: Regulation (EU) 952/2013, Union Customs Code (Official Journal of the EU).

(Start today)

Cofactu Customs is not open to clients yet. You can already invoice with VeriFactu and document your transport from the same account, for free.

Your first invoice

  • Unlimited VeriFactu invoices with QR
  • Unlimited DeCA on the Free plan
  • No card needed