BADR, Morocco's customs clearance system: who files, how access works, what you can track

As this Mirage Metrics guide explains, BADR is the online customs clearance system of Morocco's customs administration (ADII): every import declaration, payment and release goes through it. It is written for suppliers, forwarders and contractors shipping into Morocco, whose documents become the data a Moroccan broker types into BADR.

Published
Reading time
9 min
Written by
Jules Toussaint

ADII documents read on 3 December 2026: the access procedure, the 2022 user guides, the triple channel circular, the Customs Code. The ADII publishes in French; translations are ours. General information, not customs advice.

45Days to lodge the DUM after the goods reach the customs officeOrder 1318-77, art. 2
3Days to pay an assessment, outside payment facilitiesCustoms Code, art. 93
2MB per attached document, PDF onlyADII user guide, 2022

What BADR is

BADR is Morocco's system for clearing goods online, on import and on export. It covers every customs procedure and lets an operator carry out more than thirty operations remotely, from the declaration to the release (ADII, BADR page). Its full version has run since 2009 (2012 report), and paper lodging ended on 1 January 2019 (2019 report).

Electronic filing is a legal duty: goods declarations, summary declarations and their documents are lodged electronically, unless a ministerial order provides otherwise, and signed under Law 43-20 on trust services (Customs Code, article 203 bis). Access is over the Internet or by EDI through a value-added network (ADII).

TermIn fullWhat it means
ADIIAdministration des douanes et impôts indirectsMorocco's customs and excise administration, which runs BADR
DUMDéclaration unique de marchandisesThe goods declaration that places goods under a customs procedure
Transitaire agrééLicensed customs brokerThe only profession allowed to declare goods for others (art. 68)
MainlevéeReleaseCustoms permission to remove the goods, duties paid or guaranteed
PortNetNational single window for foreign tradeCarries import titles, delivery orders and exemption requests
Five French terms a BADR conversation uses. Compiled by Mirage Metrics, December 2026.

Who files the declaration

Only the owner of the goods, a licensed customs broker (transitaire agréé) and persons authorised under article 69 may declare; an owner proves ownership with commercial and transport documents in its own name (article 67). Declaring for others as a business requires the broker licence (article 68).

BADR access is granted on a file built around a Moroccan company record: a commercial register extract (modèle J) or a regional investment centre bulletin, and a national identity card or residence card number for each declarant (procedure ADII/015/11). A supplier with no Moroccan entity therefore works through its customer, or the customer's broker.

The Moroccan importer

Owns the goods, holds the import title and either declares itself or gives its broker a power of attorney.

The broker

Declares under its licence, for the clients whose power of attorney it holds in BADR.

You, the supplier

Supply the invoice, packing list, transport document and proof of origin the declaration is built from.

Source: Customs Code, articles 67 and 68; 2012 report; ADII Q&A 183.

What your documents must match

The ADII lists the documents generally attached to a declaration, and their presence is a condition for the declaration to be accepted (ADII Q&A 183):

  • Commercial invoice, and the value broken down by item.
  • Bank certificate naming the domiciliation bank, the foreign currency amount, the exchange rate and the import title references.
  • Certificate of origin, to claim a preferential rate.
  • Import title: an import commitment, an import licence or a prior import declaration.
  • Technical control certificates under non-customs rules (fraud control, health certificates, industrial standards).
  • Transport documents: bill of lading, air waybill, road consignment note.
  • Packing list, giving weight, number and kind of goods per package.

Every figure on your invoice and packing list ends up in a BADR field someone else signs.

When BADR records the declaration, it shows the gap between the total declared value and the invoiced total (ADII user guide, section 1.4). An invoice that disagrees with the packing list or the bill of lading becomes a question for the broker before it becomes one for customs. Duties are estimated per line with the customs duty calculator.

A DUM in BADR, from entry to release

The DUM can be lodged before arrival if the goods appear on a summary declaration; otherwise within 45 days of their arrival at the customs office (Order 1318-77, articles 1 and 2). Past that, the goods are deemed abandoned (article 106).

StepIn BADR
CreateOffice and procedure code required; blank form or a copy of an earlier DUM. Status "Créée provisoire", version 0
ValidateChecks run, provisional reference given; the DUM is not lodged yet
AttachRequired and supporting documents, PDF, 2 MB each at most
SignConsistency checks run again, final reference given
ChannelGreen: automatic release minutes after signing, only if every document was attached before. Orange: document check. Red: physical examination, partial or full
PayElectronic payment within three days of the assessment outside facilities; bank cards accepted
Release and exitNo removal before duties are paid or guaranteed and release is granted; the terminal handler issues the exit note
The steps of a goods declaration in BADR. Compiled by Mirage Metrics, December 2026.

Source: ADII user guide, sections 1.1, 1.5 and 1.6; circular 6175/412; Customs Code, articles 93, 95 and 100; card payment guide; procedure ADII/015/11.

Customs may move a declaration from one channel to another; the move is logged in BADR and shown to the declarant (circular 6175/412). A physical examination takes place in the declarant's presence, or without it three days after lodging (article 85). Duties are those in force on the date the declaration is recorded (article 89). Paying other than electronically adds 1%, at least 1,000 dirhams, with some exceptions (article 95).

Amending or cancelling a DUM

A recorded declaration can no longer be changed. Before release, customs can authorise a correction without penalty, and an error disclosed voluntarily within 30 days of release may be spared penalties (article 78). In BADR:

  • An amendment creates a new version, "recorded, awaiting processing"; the office accepts it, rejects it or accepts part of it.
  • A cancellation is requested on a recorded DUM with a mandatory reason, and waits for the office's decision.

Source: ADII user guide, sections 1.2 and 1.10.

What your broker can show you

A customer or broker with access can answer most "where is my shipment" questions from BADR itself.

Declaration history

Every intervention on the DUM and its versions: date, action, resulting status, user.

Duty estimate

The estimated duties and taxes of a provisional or recorded DUM, overall or per item.

Control decisions

The decision of the inspection body attached to the declaration, and linked declarations.

Import titles

The foreign exchange titles received from PortNet, their bank, validity dates and status: settled, open or cancelled.

Live progress

The real-time progress of the declaration through its channel, and the release once granted.

Diw@nati

For the company's managers: a dashboard of declarations, debts, deferred payments, inspection rate and clearance time.

Source: ADII user guide, sections 2.1 and 2.2; ADII, BADR; 2020 report.

The delivery order the terminal needs is created from the summary declaration and sent through PortNet, the national single window, since 2020 (2020 report), in every port of the national ports agency since 2022 (2022 report).

Getting your own access

A company with a Moroccan entity can declare its own goods. Access is requested in writing, for the operator and for each declarant.

  1. Build the file

    BADR connection request, a power of attorney and commitment per declarant, the operator's and each declarant's commitments, a certified commercial register extract, identity card copies.

  2. Sign and certify

    The manager named on the register signs, with every co-manager if there are several; signatures are certified. A non-resident manager delegates to a resident one.

  3. Lodge at the regional directorate48 hours at most

    The service checks the file and passes it to the ADII's IT production service.

  4. Receive code and password

    The code is the declarant's identity or residence card number; the password goes to a personal email address and is changed at first login, then at least monthly.

  5. Add the certificate

    A Barid Al-Maghrib electronic certificate provides two-factor authentication.

Source: procedure ADII/015/11, sections 5.1.1 and 5.1.2; ADII Q&A 67.

Keeping it active

Six months without a declaration blocks data entry (brokers excepted); a year withdraws access. Behind a firewall, ports 80, 443, 40443, 40444 and 40445 must be open (procedure ADII/015/11).

What holds a shipment up

  • Invoice, packing list and bill of lading that disagree on weights, packages or values.
  • Freight and insurance to the Moroccan border missing from the customs value, or counted twice when the invoice already includes them (article 20 ter).
  • Proof of origin missing when a preferential rate is claimed.
  • Import title or bank certificate missing from the file.
  • A document attached after signing: the DUM can no longer take the green channel.
  • A PDF over 2 MB, or another format: BADR rejects the upload.
  • No declarant at the examination: it goes ahead without them after three days.
  • The 45-day limit missed: the goods are deemed abandoned.

Source: ADII Q&A 183; ADII user guide; circular 6175/412; Customs Code, articles 20 ter, 85 and 106; Order 1318-77.

Preparing DUM data with agents

The declaration is only as good as the documents it is typed from. Mirage's agents read and cross-check the invoice, packing list, transport document and certificate of origin, and hand the declarant a checked data set with the gaps flagged. They do not connect to BADR and lodge or sign nothing.

Mirage has published no case study on Moroccan declarations. The closest published figure is Transwin's: 70% less manual entry on freight documents. The offer is described on DUM data preparation.

Questions readers ask

  • BADR (Base automatisée des douanes en réseau) is the online customs clearance system of Morocco's ADII, for imports and exports. Declarations and their documents are lodged in it, duties are paid through it, and release is granted in it.

  • Only the owner of the goods, a licensed customs broker (transitaire agréé) or a person the administration authorises may declare (article 67), and BADR access is granted on a file built around a Moroccan company record. A supplier with no Moroccan entity works through its customer or the customer's broker.

  • Forty-five days from the goods' arrival at the customs office, Saturdays counted and public holidays not (Order 1318-77, article 2). The DUM can also be lodged before arrival if the goods appear on a summary declaration. Past the limit, the goods are deemed abandoned (article 106).

  • Not freely. Before release, customs can authorise a correction; in BADR the request creates a new version that the office accepts, rejects or accepts in part. Cancellation is requested too, with a mandatory reason.

Sources and scope

Checked on . All sources read on douane.gov.ma on 3 December 2026. The ADII user guides date from 2022 and procedure ADII/015/11 is undated: a screen or a document in the file may have changed since. PortNet's portal was unavailable that day; its role is described from ADII documents.

General information, not customs advice. The ADII's texts and Morocco's Official Bulletin prevail over this summary.

Related on this site

Test DUM preparation on your own shipments

Leave your work email, then pick a 30-minute slot. Bring the documents of a shipment already cleared in Morocco: we show what the agents extract, the gaps they flag, and you compare with the declaration that was signed in BADR.

We use your email to reply to you and, now and then, to tell you about Mirage. You can opt out at any time. Privacy policy