1. Home
  2. Solutions
  3. Customs procedures
  4. G3, G4 and G5
Customs · temporary storage

G3, G4 and G5: presentation and temporary storage

Solution for declaring to the Spanish Tax Agency (AEAT) the arrival, presentation and temporary storage of goods, and their movements between temporary storage facilities, under the Union Customs Code.

What it is

From ICS2 to the customs declaration, without re-entering data

When goods arrive in the EU, once the ICS2 entry summary declaration (ENS) has been filed, the following must be declared to the AEAT: temporary storage (G4), presentation to customs (G3) and, if the goods are moved to another facility, the movement itself (G5).

The module works with the data you already have on the platform, including the ENS sent with ICS2, or with data you upload by API, FTP or email, or enter by hand; it generates the messages and sends them to the Tax Agency. It receives every response and links it to the customs declaration that will discharge the G4.

For air cargo, G3, G4 and G5 have been the only accepted system since the DSDT was withdrawn in March 2026. For sea freight, the G4 will be channelled through the European Maritime Single Window environment (EMSWe), which in Spain is integrated with DUEPORT.

If you already file your ENS with us, see the ICS2 solution.

G3, G4 and G5
Regulation
Union Customs Code (Arts. 139, 145 and 148)
Authority
Spanish Tax Agency (AEAT)
Clients
20 companies
How it works

The entry process, from the ENS to the customs declaration

01

ENS · ICS2

The arrival of the goods in the EU is declared.

02

G4 · Storage

Temporary storage declaration, built from the ENS.

03

G3 · Presentation

The warehouse operator presents the goods to customs.

04

SAD · Declaration

The customs declaration discharges the G4.

What it covers

Three messages, one source of data

  • G4 · Temporary storage declarationReplaces the former DSDT. One for each master bill of lading unloaded from the means of transport, lodged at the latest when the goods are presented. Generated from the ENS. Art. 145 UCC.
  • G3 · Presentation of goodsNotifies customs that the goods are in the temporary storage facility (ADT, its Spanish acronym). Lodged by the facility holder, it activates the G4 or the corresponding pre-lodged declaration. Art. 139 UCC.
  • G5 · Movement in temporary storageNotifies the departure and arrival of goods moved from one temporary storage facility to another. Art. 148 UCC.

Why Portel

The whole entry process on one platform

  • No double keying

    ENS and bill of lading data feed the G4, G3 and G5 automatically.

  • AEAT responses in view

    Acceptances, errors and the status of every message, to review and correct without leaving the platform.

  • Traceable discharge

    Every G4 is linked to the customs declaration that discharges it and to the ENS it comes from.

  • Up to date with the rules

    Adapted to the AEAT technical guidelines and to the arrival of the maritime single window.

Let’s talk

Would you like to see it working with your data?

In a demo, we’ll show you how it would work in your own operation.