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.
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).
| Term | In full | What it means |
|---|---|---|
| ADII | Administration des douanes et impôts indirects | Morocco's customs and excise administration, which runs BADR |
| DUM | Déclaration unique de marchandises | The goods declaration that places goods under a customs procedure |
| Transitaire agréé | Licensed customs broker | The only profession allowed to declare goods for others (art. 68) |
| Mainlevée | Release | Customs permission to remove the goods, duties paid or guaranteed |
| PortNet | National single window for foreign trade | Carries import titles, delivery orders and exemption requests |
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).
| Step | In BADR |
|---|---|
| Create | Office and procedure code required; blank form or a copy of an earlier DUM. Status "Créée provisoire", version 0 |
| Validate | Checks run, provisional reference given; the DUM is not lodged yet |
| Attach | Required and supporting documents, PDF, 2 MB each at most |
| Sign | Consistency checks run again, final reference given |
| Channel | Green: automatic release minutes after signing, only if every document was attached before. Orange: document check. Red: physical examination, partial or full |
| Pay | Electronic payment within three days of the assessment outside facilities; bank cards accepted |
| Release and exit | No removal before duties are paid or guaranteed and release is granted; the terminal handler issues the exit note |
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.
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.
- 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.
- 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.
- Lodge at the regional directorate48 hours at most
The service checks the file and passes it to the ADII's IT production service.
- 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.
- 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.
- ADII, BADR, Base automatisée des douanes en réseau (in French): definition, users, online services, Internet and EDI access
- ADII, procedure ADII/015/11, granting and withdrawing BADR access codes for economic operators (revision 11, undated, in French): operator profiles, access file, 48-hour check, code and password, super-declarant, network ports, blocking and withdrawal
- ADII, questions and answers: access to BADR (in French): access code, Barid Al-Maghrib electronic certificate
- ADII, questions and answers: documents attached to the goods declaration (in French): supporting documents, admissibility
- ADII, user guide "Déclaration en détail, partie déclarant", version 2.0, November 2022 (in French): creating, versioning, attaching, signing, amending and cancelling a DUM; search services; foreign exchange titles
- ADII, user guide "Paiement électronique par carte bancaire", version 1.3, February 2022 (in French): card payment of cash, deferred and miscellaneous assessments
- ADII, circular 6175/412 of 2 April 2021, the triple channel (in French): green, orange and red channels; reselection logged in BADR
- Moroccan Customs and Excise Code, ADII online version (in French): articles 20 ter, 67, 68, 78, 85, 89, 93, 95, 100, 106 and 203 bis
- Order of the Minister of Finance 1318-77 of 31 October 1977, lodging goods declarations (in French): lodging before arrival, 45-day time limit
- ADII, 2012 activity report, information system (in French): full version of BADR since 2009, broker powers of attorney
- ADII, 2019 activity report, paperless clearance (in French): end of paper lodging on 1 January 2019
- ADII, 2020 activity report, paperless clearance (in French): electronic delivery order through PortNet, Diw@nati
- ADII, 2022 activity report, paperless clearance (in French): electronic delivery order in every ANP port
- Mirage Metrics, Transwin case study: 70% less manual entry on freight documents
General information, not customs advice. The ADII's texts and Morocco's Official Bulletin prevail over this summary.
Related on this site
- Customs duty calculator: estimate duties per line
- DUM data preparation: cross-check documents before the declaration
- Incoterms 2020 checker: what the invoice price includes
- Bill of lading processing: the transport document field by field
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.