Blog
// CUSTOM & COMPLIANCE

Customs clearance: how it works, who handles it and which documents you need

Customs clearance decides when you can actually use your goods. We explain the stages, who can handle it for you and which data errors hold it up.

A container can sit at the port for days even when it arrived on time. The ship is rarely to blame: what is missing is customs clearance, the procedure that turns foreign goods into goods the importer can actually work with. If the data is complete and consistent, it takes minutes. If not, the calls, the requests for information and the storage costs begin.

This guide is written for whoever buys the service: importers, exporters and freight forwarders. It explains what customs clearance is, how it works step by step, who can handle it on your behalf and which errors delay it most often.

What customs clearance is

Customs clearance is the set of formalities through which goods are declared to customs to place them under a customs procedure: release for free circulation to import them, export so that they leave the EU, or transit so that they move with duties suspended, as with the T1 document. It ends with the release, customs’ authorization for the declarant to dispose of the goods.

The core of the process is the customs declaration, in Spain the DUA. It records the importer or exporter, the description and tariff code of the goods, their origin, their value and the procedure requested. With that data, customs calculates duties and import VAT and decides which controls to apply.

It is worth separating this from a use of the term that fills search results: parcels bought by individuals and held by the postal service or a courier. The underlying procedure is the same, but this guide focuses on commercial operations between companies.

The stages of customs clearance, step by step

In a typical sea or air import, clearance follows this sequence:

  1. Entry summary declaration. Before the goods arrive, the carrier (and in sea freight also the forwarder, at house bill of lading level) sends the safety and security data for the cargo.
  2. Arrival and temporary storage. The goods are unloaded and held in a temporary storage facility until a customs procedure is declared.
  3. Preparing the declaration. The declarant gathers the commercial invoice, the packing list, the transport document and any certificates required, and prepares the DUA.
  4. Lodging and channel assignment. The customs system validates the declaration and assigns it a control channel.
  5. Payment and release. Once duties and VAT have been paid (or guaranteed), customs grants release and the goods can leave the facility.

Stages 1, 2, 4 and 5 depend mainly on other parties’ systems and deadlines. Stage 3 is the one the importer and its representative control, and it is where most of the time is won or lost.

Green, orange or red channel: what each one means

When the DUA is lodged, the Spanish Tax Agency’s risk analysis system assigns it a channel that sets the level of control:

  • Green channel: automatic clearance, with no prior check of documents or goods.
  • Orange channel: customs asks for the documents and certificates that support the declaration before granting release.
  • Red channel: on top of the document check, the goods are physically inspected.

You cannot choose the channel, but you can influence what happens next. An orange-channel file is resolved quickly if the documents are at hand and their data matches the DUA. If someone has to dig them out of an inbox, or the invoice says one thing and the packing list another, release is delayed and the container keeps running up charges.

Who can handle customs clearance for you

Importers and exporters can lodge the declaration themselves, but in practice most companies work through a customs representative. The rules distinguish two forms of representation.

In direct representation, the representative lodges the declaration in the name and on behalf of the client, who remains liable for the customs debt. In indirect representation, the representative lodges it in its own name but on behalf of the client, and the Spanish Tax Agency treats it as co-debtor and jointly liable. To act as a representative you must be listed in the Register of Customs Representatives and prove your qualifications, through aptitude tests in the case of individuals.

The client’s authorization to the representative is the customs clearance authorization. It can be granted per operation or globally, and it is registered with the Tax Agency. Without it, the representative cannot lodge declarations on the company’s behalf.

Customs broker or freight forwarder with a customs department

A customs broker is the professional or firm that specializes in customs representation: it classifies the goods, prepares the DUA and is technically responsible for it. Many freight forwarders have their own customs department and offer clearance together with transport, which cuts out an intermediary. Others subcontract that part to an external broker.

For the importer, the practical difference lies in who holds the documents. If the forwarder organizes the transport and clears the goods, the data stays within one company. If they are two different companies, each document changes hands at least once more, with the delay and retyping risk that comes with it.

Which documents you need for clearance

The exact list depends on the goods, the origin and the procedure, but almost every import clearance starts from these documents:

  • Commercial invoice, which supports the value and the terms of sale (Incoterm).
  • Packing list, with the number of packages, their contents and their weights.
  • Transport document: bill of lading (BL) for sea freight, air waybill (AWB) for air freight or CMR for road.
  • Certificate of origin, if you want to apply a preferential duty rate.
  • Specific licenses and certificates (health, phytosanitary, conformity), depending on the product.

Clearance is not just about having them, but about them saying the same thing. The packages and weight on the packing list must match the transport document, and the value and description on the invoice must be able to support the tariff code and the tax base in the DUA.

Clearance times and costs

A green-channel clearance with complete documents is usually done the same day. What stretches the timeline is rarely customs itself, but what happens before the DUA is lodged: documents that don’t arrive, data that has to be confirmed with the supplier, or discrepancies between papers.

On costs, the importer pays the taxes on one side (duties, import VAT and, where applicable, excise duties) and the representative’s fees on the other, usually charged per declaration and per additional line. On top of that come less visible costs: temporary storage, container demurrage or inspections. These are exactly the ones that spike when the file is not ready.

The errors that delay release most often

Most clearance incidents come from a handful of recurring mistakes:

  • Different package counts or weights between the packing list, the transport document and the declaration.
  • Generic descriptions on the invoice (“parts”, “accessories”) that cannot justify the tariff code.
  • Value or Incoterm carried over wrongly, which changes the base for calculating duties and VAT.
  • Missing certificates, or certificates that don’t match the goods declared.
  • Expired representation authorizations, or ones that don’t cover the customs office of clearance.

They all have something in common: they are data errors, not gaps in customs knowledge. They happen when information is copied from one document to another, often in a hurry and from PDFs that arrive by email.

An example: an import from Shenzhen

An importer in Barcelona brings in two containers of household appliances from Shenzhen and works with a forwarder that also handles clearance. When the ship is a week away, the supplier emails the commercial invoice and the packing list, the shipping line sends the BL, and the client forwards the certificate of origin to claim a preferential duty rate.

In a manual process, the customs specialist opens each PDF and types the description, value, packages, weights and origin into the clearance software. The packing list states 1,240 packages and the BL 1,204: a typo by the supplier that nobody spots until the DUA lands in the orange channel. A corrected BL has to be requested, the container spends three more days at the terminal and the client pays storage it hadn’t budgeted for.

With the documents read automatically, the data from the invoice, the packing list and the BL is extracted as soon as it arrives and cross-checked. The package discrepancy shows up as an alert the same day, a week before arrival, and is fixed with the supplier at no cost. The specialist reviews a pre-filled declaration instead of building it from scratch.

80% less manual time in document processes automated with Kaiona.

How to prepare clearance without manual work

Clearance will still depend on a professional’s judgment: the tariff classification, the most suitable procedure or the response to a request from customs. What can be automated is all the data work that comes before. Kaiona reads invoices, packing lists, transport documents and certificates in any format (K-Scan), groups them by shipment file with cross-checks (K-Flow) and connects the TMS or ERP with the clearance software so that each piece of data is entered only once (K-Plug).

If you are a customs broker, we explain how we apply it on our customs software page. If you import or export, see our page for importers and exporters. And for the rest of the process, read our guide to import and export.

Key takeaways

  • Customs clearance places goods under a customs procedure and ends with release, when the importer can dispose of them.
  • The green, orange or red channel sets the level of control; in orange and red, having the documents at hand and consistent is what decides the timeline.
  • Clearance can be handled by a customs representative in direct or indirect representation; in indirect representation, the representative is jointly liable for the debt.
  • Most delays come from data errors between the invoice, packing list, transport document and DUA, not from customs itself.
// FAQ

Frequently asked questions

What is customs clearance?

It is the set of formalities for declaring goods to customs and placing them under a customs procedure, such as release for free circulation, export or transit. It ends with release, the authorization to dispose of the goods.

Who can handle customs clearance?

The importer or exporter itself, or a customs representative listed in the Spanish Tax Agency's Register of Customs Representatives. Many freight forwarders have a customs department and also act as representatives.

What is the difference between direct and indirect customs representation?

In direct representation, the representative declares in the name and on behalf of the client. In indirect representation, it declares in its own name but on behalf of the client, and is jointly liable for the customs debt.

What does it mean when a DUA is assigned to the orange channel?

It means customs will check the documents supporting the declaration before granting release. In the red channel, the goods are also physically inspected.

How long does customs clearance take?

No, Kaiona is not a traditional SaaS. We don't sell you a generic platform that you have to adapt to, nor a monthly user license for your team to do the work.

Kaiona functions as a custom artificial intelligence and automation layer that connects directly with your current systems (ERPs, CRMs, document management). We handle the technical complexity so that you only see the results within your usual workflow.

// AUTOR
Kaiona Tech
The Kaiona Tech team: 20+ years in supply chain, applying AI to the paperwork of freight forwarders, customs brokers and logistics operators.

Related blog posts