PortNet Morocco & BADR: Digital Customs Clearance, Tangier Med & Freight Guide (2026)


PortNet Morocco & BADR: Digital Customs Clearance, Tangier Med & Freight Guide (2026)

Direct Answer: In PortNet Morocco, importers, banks, port operators, and ministries coordinate trade documents, import titles, and terminal releases through one digital Single Window (guichet unique PortNet). Meanwhile, licensed declarants file the electronic customs declaration (DUM) inside BADR (Base Automatisée des Douanes en Réseau), operated by Moroccan Customs (ADII). Together, these two platforms power customs clearance in Morocco online—allowing well-prepared shipments at Tanger Med and Casablanca to clear in hours instead of days when documents match prior to arrival.


Aerial view of Tanger Med container and Ro-Ro terminals in northern Morocco handling PortNet Morocco and BADR customs clearance operations
Fig. 1 — Tanger Med container and Ro-Ro terminals in northern Morocco, where digital pre-clearance via PortNet and BADR governs cargo velocity.

1. Why Morocco Is a Strategic Trade Hub in 2026

Working daily on freight files in northern Morocco, I see global supply chains treating the country as a primary manufacturing and transshipment platform. Three structural advantages drive this growth in 2026:

  • Proximity to Europe: Trailers leaving Tangier or Kenitra cross from Tanger Med to Algeciras in roughly 90 minutes and reach France or Germany within 48 to 72 hours.
  • Free Trade Agreements: Agreements with the EU, US, UK, Turkey, EFTA, and African partners cut or eliminate duties when exporters provide valid origin proof like an EUR.1 certificate.
  • Digital Customs Modernization: Under Moroccan Customs (ADII), paper stamps have given way to electronic declarations, risk scoring, and digital gate passes.

Still, border speed is never automatic. Cargo sits idle whenever teams misunderstand how PortNet Morocco connects to ADII’s clearance system.

2. PortNet Morocco vs. BADR Explained

New importers often ask why every shipment involves two separate portals. Both systems handle distinct legal steps and exchange data automatically.

What is PortNet in Morocco?

PortNet is Morocco’s national Single Window for foreign trade—the guichet unique PortNet. It links importers, exporters, banks, shipping lines, port terminals, freight forwarders, and inspection ministries on one digital platform.

Before cargo loads abroad, your company opens and bank-domiciles an import title (Engagement d’Importation) in PortNet. Upon arrival, PortNet manages arrival notices, technical approvals (ONSSA or Ministry of Industry), port invoices, and the electronic gate release (Bon à Sortir).

What is the difference between PortNet and BADR?

Shippers often confuse PortNet with BADR douane Maroc (Base Automatisée des Douanes en Réseau). PortNet is a multi-agency trade and port coordination hub. BADR belongs solely to Moroccan Customs (ADII) and powers the déclaration en douane électronique (DUM), tariff assessment, risk selectivity, and legal release (Mainlevée).

Feature PortNet Morocco (Guichet Unique) BADR (ADII Customs System)
Primary Operator PortNet S.A. (Public-Private Single Window) ADII (Moroccan Customs Administration)
Core Purpose Import titles, bank domiciliation, port & ministry coordination Electronic customs declaration (DUM), tariff & risk control
Main Users Importers, exporters, banks, shipping lines, terminals, agencies Licensed customs brokers (transitaires), ADII officers, authorized declarants
Key Outputs Domiciled Import Title, technical approvals, terminal gate pass Registered DUM, selectivity channel, duty receipt, Mainlevée
System Integration Pushes validated import titles and control releases to BADR Receives manifest & PortNet data; sends customs release back to port
Freight forwarding specialist checking digital import documents and BADR customs declaration at a Moroccan port office
Fig. 2 — Synchronizing PortNet commercial titles with BADR customs declarations before vessel arrival prevents terminal bottlenecks.

How do I create a PortNet account?

Four operational groups hold accounts across the clearance chain: importers, exporters, licensed customs brokers, and transporters or freight forwarders, alongside banks, shipping agents, and terminal operators.

A Moroccan-registered business applies online via the official PortNet portal using its Commercial Register (RC), Common Enterprise Identifier (ICE), tax ID, and legal representative credentials. Once validated, you link your bank and assign access to your customs broker Morocco partner. Note that foreign companies without a Moroccan tax registration cannot open a local PortNet importer account—confirm who acts as Importer of Record before booking.

Can I clear customs online in Morocco?

Yes. Today, dédouanement en ligne Maroc handles nearly every stage digitally. Your broker uploads invoices, packing lists, transport documents, and origin proofs into BADR (Morocco import documents digital workflow), links the PortNet title, and settles duties online. Physical presence only occurs if BADR orders a physical inspection or an agency requests sampling.

3. Import & Export Basics: Documents and Incoterms

In my day-to-day work at Tanger Med, roughly four out of five customs holds originate before departure—usually from missing invoice details, mismatched weights, or unverified HS codes.

What documents are needed for import clearance in Morocco?

Prepare consistent commercial, transport, banking, and regulatory files so your broker lodges clean figures across both PortNet and BADR:

Document Issued By When Needed
DUM (Déclaration Unique des Marchandises) Licensed customs broker / declarant via BADR Mandatory for every commercial import or export customs clearance
Engagement d’Importation (Import Title) Moroccan importer via PortNet & domiciled at local bank Mandatory prior to clearance for commercial imports requiring foreign exchange settlement
Commercial Invoice (Facture Commerciale) Foreign seller / exporter Always required; must show HS description, Incoterm, currency, origin, and unit prices
Packing List (Liste de Colisage) Exporter / shipper Always required when multiple packages, net/gross weights, or SKUs are shipped
Bill of Lading (B/L) or Sea Waybill Maritime carrier / freight forwarder Mandatory for all sea freight (FCL/LCL) to prove title and match the port manifest
CMR Consignment Note International road carrier Mandatory for all Ro-Ro and European road freight movements
Air Waybill (AWB) Airline or IATA air freight agent Mandatory for air cargo arriving at Casablanca Mohammed V (CMN) or Tangier (TNG)
EUR.1 Movement Certificate / Origin Proof Exporter & origin customs (or Approved Exporter invoice declaration) Required when claiming preferential duty under EU–Morocco or EFTA/UK trade agreements
COC (Certificate of Conformity) / Technical Control Accredited inspection bodies (via PortNet) Required for regulated industrial, electrical, textile, or consumer products
ONSSA Phytosanitary / Veterinary Certificate Origin agricultural authority + Moroccan ONSSA clearance Mandatory for food, feed, plants, wood packaging (ISPM-15), and animal products

Internal Reference: [INTERNAL LINK: EUR.1 Certificate of Origin Morocco Rules] · [INTERNAL LINK: ONSSA & Technical Control Compliance in Morocco]

How Incoterms Shape BADR Valuation and Foreign Exchange

Choosing EXW, FOB, CFR, CIF, or DAP affects BADR valuation and bank settlement under Morocco’s Office des Changes rules. ADII calculates duties and import VAT on the CIF value at the Moroccan entry point.

  • EXW & FOB: Your forwarder arranges main carriage, and your broker adds actual freight and local insurance to build the BADR CIF base.
  • CFR & CIF: Keep invoice freight aligned with carrier records in case ADII requests valuation proof.
  • DAP & DDP Caution: Foreign exporters cannot reclaim Moroccan import VAT or open a local PortNet account; use FOB, CFR, or DAP with the Moroccan buyer clearing locally.

Reference placeholder: [INTERNAL LINK: Incoterms 2020 Guide for Moroccan Importers]

4. Step-by-Step Customs Clearance Flow (PortNet & BADR)

Understanding the exact handoff prevents terminal storage charges. A standard Tanger Med customs procedure follows seven steps:

  1. Bank Domiciliation in PortNet: The importer submits the Engagement d’Importation in PortNet, and their Moroccan bank domiciles it electronically.
  2. Electronic Manifest Transmission: Before arrival, the carrier transmits the manifest into PortNet and BADR with matching weights, package counts, and consignee ICE.
  3. DUM Submission in BADR: Your customs broker Morocco files the DUM with the 10-digit HS code, links the PortNet title, and uploads scanned supporting files.
  4. Risk Selectivity Channel: BADR routes the file to Green (automated clearance), Orange (document review), or Red (physical/X-ray inspection).
  5. Technical Controls via PortNet: If required, MCINET conformity or ONSSA approvals are logged in PortNet and transmitted directly to BADR.
  6. Duty Liquidation & Payment: ADII issues the Fiche de Liquidation; once paid electronically, BADR grants customs release (Mainlevée).
  7. BAD & Gate-Out: The shipping agent emits the digital Delivery Order (BAD), and PortNet issues the Bon à Sortir for truck exit.
“Fast customs clearance in Morocco is won 48 hours before arrival, not at the terminal gate. Clean HS classification and matched PortNet–BADR references do 90% of the work.”

5. Tangier Med & the Northern Logistics Ecosystem

Located on the Strait of Gibraltar, Tanger Med combines deep-sea container terminals (TC1–TC4) with high-frequency Ro-Ro berths serving Tanger Free Zone, Tanger Automotive City, and Renault Melloussa. Shipments bound for Industrial Acceleration Zones use suspensive regimes in BADR rather than standard home-use clearance—always verify regime codes with your broker before filing.

How long does customs clearance take at Tanger Med?

Turnaround depends on preparation and BADR selectivity:

  • Pre-Cleared Ro-Ro Trailers (Green Channel): Often release within a few hours of ferry disembarkation.
  • Containerized Cargo (Green Channel): Frequently obtains Mainlevée on the same working day after vessel discharge and BAD issuance.
  • Orange or Red Channel / Technical Inspection: Physical unstuffing, X-ray checks, or ONSSA sampling typically add one to several working days.

Weather, peak seasons, or incomplete files shift timelines—always confirm current expectations with Moroccan Customs (ADII) or a licensed customs broker. [INTERNAL LINK: Tangier Med Port Storage & Demurrage Guide]

6. Transport in Morocco: Road, Sea, Air & Rail

Mode selection balances urgency, cargo density, and origin corridor, each tied to a specific transport document:

Container and TIR trucks moving along the Tanger Med to Casablanca motorway corridor after online customs release
Fig. 3 — Highway logistics linking Tanger Med to Rabat, Kenitra, and Casablanca support rapid domestic distribution after BADR release.
Transport Mode Main Moroccan Hubs Core Document Best Operational Fit
Road / Ro-Ro (TIR) Tanger Med (Ro-Ro), Nador CMR Consignment Note Automotive parts, textiles, fresh produce, urgent EU–Morocco industrial flows
Maritime (FCL / LCL) Tanger Med, Casablanca, Agadir, Jorf Lasfar Bill of Lading (B/L) Heavy machinery, retail inventory, raw materials, Asia/Americas/EU bulk & palletized freight
Air Freight Casablanca (CMN), Tangier (TNG), Marrakesh (RAK) Air Waybill (AWB) High-value electronics, aerospace spares, urgent samples, pharmaceuticals
Rail Freight (ONCF) Tanger Med – Kenitra – Casablanca – industrial corridors Rail Consignment Note / Internal Transfer Domestic container shuttles, automotive exports, bulk industrial corridors

Ro-Ro trailers via Tanger Med deliver reliable door-to-door speed for European trade, while FCL containers and ONCF rail shuttles anchor deep-sea Asian and American imports.

7. How to Minimize Logistics Costs

Importers often chase minor freight discounts while losing far more to port storage and container detention. Real savings come from synchronizing customs readiness with carrier terms:

Cost Driver Why It Inflates Landed Cost Practical Reduction Action
Demurrage & Detention Short free-time expires during customs holds or late original B/Ls Negotiate extended free days; use Sea Waybills or Telex Release when allowed
Port Storage Late DUM filing or unresolved COC/ONSSA holds trap boxes in yard Initiate PortNet Engagement and COC checks before origin loading
Missed Preferential Duty Missing or defective EUR.1 triggers full third-country tariffs Verify origin rules and Approved Exporter wording pre-departure
Poor Consolidation Half-empty FCL boxes or emergency air freight spike unit cost Group orders into weekly LCL consolidation or scheduled Ro-Ro runs
Manifest Amendments Post-arrival weight or HS fixes trigger delays and extra fees Audit draft B/L and invoice 72 hours before vessel arrival

Track your average days from vessel discharge to terminal gate-out each quarter to spot document, banking, or drayage bottlenecks early.

8. AI and Digitalization in Freight Forwarding

In 2026, AI cuts repetitive manual re-typing between supplier PDFs, PortNet, and BADR—without replacing licensed customs specialists.

Diagram of Morocco digital customs clearance flow from commercial invoice and Bill of Lading extraction to BADR release
Fig. 4 — Practical AI workflow: OCR and LLM extraction turn messy supplier PDFs into structured draft data for human verification prior to BADR submission.

What AI Actually Does in Freight Forwarding

AI does not clear customs autonomously; Moroccan law holds the authorized declarant or customs broker Morocco liable for every DUM. AI serves as a fast preparation assistant that structures documents and flags anomalies for human sign-off.

Use Cases & Tools by Function

  • Quoting: Parses carrier Excel/PDF rate sheets and surcharges into margin-checked quotes (Tools: Freight rate platforms, spreadsheet parsers).
  • Document Extraction: OCR + Vision AI pulls invoice lines, weights, and B/L numbers in seconds (Tools: Logistics Intelligent Document Processing platforms).
  • HS Code Suggestions: Matches item descriptions against Harmonized System notes and historical BADR filings (Tools: Tariff classification assistants).
  • ETA Prediction: Combines AIS vessel tracking and Strait congestion signals to time truck dispatch (Tools: Maritime visibility APIs and TMS alerts).
  • Email Triage: Routes urgent missing-EUR.1 holds and arrival notices to the right desk (Tools: Shared logistics inbox classifiers).

Risks: Bad Data, Compliance & Over-Trusting Outputs

  • Bad Input Data: Blurry scans or swapped decimal separators create silent quantity errors.
  • Compliance Liability: ADII penalizes the importer and declarant for wrong HS codes—never the software vendor.
  • Over-Trusting Outputs: Models miss edge-case technical controls; a human declarant must always verify tariff notes and MCINET/ONSSA triggers.

How to Start Small: A 30-Day Plan

  • Days 1–7: Audit where staff spend the most manual keying minutes.
  • Days 8–15: Run AI extraction in shadow mode on 20 past invoices and compare against BADR entries.
  • Days 16–23: Lock a verified 10-digit HS master sheet for recurring SKUs.
  • Days 24–30: Deploy draft extraction on live files with mandatory human verification before PortNet or BADR upload.

9. Common Errors and Delays to Avoid

  • Un-domiciled Engagement d’Importation: Shipping goods before verifying bank domiciliation tolerances or title validity in PortNet.
  • B/L vs. Invoice Mismatches: Weight, package count, or ICE discrepancies between the carrier manifest and commercial invoice.
  • EUR.1 Defects: Missing stamps, wrong dates, or invalid exporter declarations causing ADII to reject EU origin preferences.
  • Missed Technical Controls: Discovering upon arrival that goods require pre-shipment COC or ONSSA authorization.
  • Paper B/Ls on Short Transit: Using negotiable paper bills on 4-day Mediterranean lanes instead of Sea Waybills or Telex Release.

10. Practical Pre-Shipment & Customs Checklist

  1. Verify the 10-digit Moroccan HS code and check COC, ONSSA, or licensing triggers in PortNet and BADR.
  2. Confirm active RC, ICE, and PortNet registration for the Moroccan Importer of Record.
  3. Open and bank-domicile the Engagement d’Importation in PortNet before loading.
  4. Audit draft invoice, packing list, and B/L or CMR for identical weights, packages, Incoterms, and descriptions.
  5. Verify original EUR.1 or compliant Approved Exporter wording prior to dispatch.
  6. Send full PDF scans to your customs broker Morocco 48–72 hours before arrival.
  7. Secure adequate container free days and track vessel ETA for immediate pickup after Mainlevée.

11. Frequently Asked Questions (FAQ)

What is PortNet in Morocco?

PortNet is Morocco’s national trade Single Window (guichet unique PortNet), connecting importers, exporters, banks, port authorities, shipping lines, and ministries online to manage import titles, technical controls, and terminal gate releases.

What is the difference between PortNet and BADR?

PortNet coordinates multi-agency commercial, banking, and port formalities. BADR belongs exclusively to Moroccan Customs (ADII) for electronic DUM declarations, duty liquidation, risk selectivity, and customs release (Mainlevée).

How do I create a PortNet account?

Moroccan-registered companies apply via the official PortNet portal using their RC, ICE, tax ID, and legal representative credentials. Foreign exporters rely on their Moroccan buyer and licensed customs broker for local filings.

Can I clear customs online in Morocco?

Yes. Brokers and importers submit import titles in PortNet, file the DUM with scanned PDFs in BADR, and pay duties electronically. Physical contact only occurs during red-channel inspections or agency sampling.

What documents are needed for import clearance in Morocco?

Core files include the Commercial Invoice, Packing List, B/L or CMR/AWB, bank-domiciled Engagement d’Importation in PortNet, DUM in BADR, EUR.1 or Certificate of Origin for preferences, and any ONSSA or COC certificates.

How long does customs clearance take at Tanger Med?

Pre-cleared green-channel cargo often clears within hours of unloading. Red-channel inspections, technical controls, or manifest fixes can extend clearance to one or several working days. Always confirm current timelines with Moroccan Customs (ADII) or a licensed customs broker.

12. Conclusion & Regulatory Disclaimer

Digital clearance via PortNet Morocco and BADR lets prepared importers and exporters move cargo through Tanger Med and Casablanca predictably in 2026. Synchronize your documents early, avoid carrier free-time traps, and keep humans verifying every AI-assisted draft.

Operational & Regulatory Disclaimer: Customs tariffs, technical controls, and terminal rules evolve regularly. Rules change, verify with ADII/BADR before shipping. Always confirm binding classifications, duty rates, and special regimes with Moroccan Customs (ADII) or a licensed customs broker.

Mr. Hatim Oulad Belhaj

Supply Chain & Transport Operations Expert

Specialist in Moroccan port operations (Tanger Med & Casablanca Port) and International Road Transport (TIR). Over 5 years of hands-on experience handling Moroccan customs procedures (BADR portal, Single Goods Declaration - DUM, EUR.1 certificates, and PortNet). Holds a Bachelor's degree in Supply Chain & International Logistics.

This operational guide is published by CargooMaghreb.com, the independent online resource for logistics, freight forwarding, and international customs compliance across Morocco, the Maghreb, and European transport corridors.

Previous Post
No Comment
Add Comment
comment url