🇲🇦 Morocco (MA)
Morocco is a fully live market. D-ME supports CIN national IDs and passports, verified via Smile Identity's CNIE (Carte Nationale d'Identité Électronique) integration.
Supported ID types
| ID Type | id_type value | Issuer | Status |
|---|---|---|---|
| CIN — Carte Nationale d'Identité | national_id | Direction Générale de la Sûreté Nationale (DGSN) | Live |
| Passeport | passport | Direction Générale de la Sûreté Nationale (DGSN) | Live |
ID number formats
| ID Type | Format | Example |
|---|---|---|
| CIN | 1–2 letters + 5–6 digits | AB123456 or A123456 |
| Passport | 2 letters + 7 digits | AA1234567 |
Sandbox test IDs
| ID Number | Type | Sandbox result |
|---|---|---|
AB000001 | national_id | approved |
AB000002 | national_id | declined |
AA0000001 | passport | approved |
Example request
Morocco CIN request body
{
"id_type": "national_id",
"country": "MA",
"id_number": "AB123456",
"first_name": "Youssef",
"last_name": "El Amrani",
"date_of_birth": "1988-11-20"
}Arabic name support
Moroccan identity documents may have names in Arabic, French transliteration, or both. D-ME accepts names in either script. For best match rates, use the name as it appears on the Latin-script side of the document (the French transliteration).
Name matching is case-insensitive and handles common transliteration variations (e.g., "Mohamed" / "Mohammed" / "Muhammad"). Diacritics are normalised.
Processing time (live)
| ID Type | Typical time | Max time |
|---|---|---|
| CIN | 5–12 seconds | 30 seconds |
| Passport | 5–12 seconds | 30 seconds |
CNIE notes
Morocco rolled out the electronic CIN (CNIE) in 2008. All CINs issued after 2008 are electronically verifiable. Older paper CINs (issued before 2008) may return declined due to incomplete digital records — this is not an error.