Morocco

Learn everything you need to know to make payouts in Morocco with dLocal.

Market specifications

Take a look of all the information you need to make a payout.

Country reference Mandatory paramenters

Payment methods

Find all the information about payment methods capabilities.

Bank transfers

Bank information

Find all the bank account validations details you need to make a payout.

Bank account validations Bank codes

Market specifications

Do you want to know more information about Morocco's market? Go to the Morocco’s economy and eCommerce market article.

Country reference

country codecurrency codeamount decimalsdocument_type namedocument_id format
MAMAD2CNIEBetween 5 to 20 characters

Mandatory parameters

Bank transfers

Bank transfer parametersB2CB2BP2P
loginYesYesYes
passYesYesYes
external_idYesYesYes
beneficiary_nameYesYesYes
beneficiary_lastnameYesYesYes
countryYesYesYes
bank_accountYesYesYes
amountYesYesYes
currencyYesYesYes
addressYesYesYes
purpose--Yes
remitter_full_name--Yes
remitter_country--Yes
remitter_document_type--Yes
remitter_document--Yes
remitter_birth_date--Yes

Payment methods

Morocco supports payouts via Bank transfers. This method requires specific parameters and follows validation rules aligned with local compliance and banking standards.

Bank transfers

Bank transfers in Morocco require detailed account information, including RIB. The format of these fields depends on the receiving bank, and strict validation rules apply.

Refer to the bank codes section for format specifications.

Mandatory parameters

All fields listed below are required for bank transfer payouts. For successful processing, ensure correct formatting and value types.

Mandatory parameterDescription
loginAPI authentication credentials. Maximum 32 characters.
passAPI authentication credentials. Maximum 32 characters.
external_idUnique transaction identifier. Maximum 100 characters.
beneficiary_nameFirst name of the beneficiary. Maximum 50 characters.
beneficiary_lastnameLast name of the beneficiary. Maximum 50 characters.
countryCountry code. For Morocco, use MA.
bank_accountRIB (Relevé d'Identité Bancaire) length 24 digits. See bank codes below.
amountPayout amount. Use up to 2 decimal places.
currencyPayout currency. For Morocco, use MAD or USD.
addressFull address of the beneficiary. Maximum 200 characters.
purposeReason for the payout. EPREMT for Remittance (P2P). Mandatory only for remittance (P2P).
remitter_full_nameFull name of the sender. Maximum 200 characters. Mandatory only for remittance (P2P).
remitter_countryISO 3166-1 alpha-2 code of the sender. Mandatory only for remittance (P2P).
remitter_document_typeType of identification document: ID for national identification number, PASS for passport. Mandatory only for remittance (P2P).
remitter_documentDocument number of the sender. Maximum 45 characters. Mandatory only for remittance (P2P).
remitter_birth_dateSender’s birth date in YYYYMMDD format. Mandatory only for remittance (P2P).

Example request

{
  "login": "1n234n56",
  "pass": "HolAc123o",
  "external_id": "1234567812345678b",
  "beneficiary_name": "JUAN",
  "beneficiary_lastname": "PEREZ",
  "country": "MA",
  "bank_account": "007787001988877665431292",
  "amount": "2977.89",
  "comments": "this is the 1st comment",
  "currency": "MAD",
  "address": "14 Boulevard Al Massira Al Khadra",
  "extra_info": "{ \"this_is_extra\": 2334 }",
  "notification_url": "https://thisisawebsite.net/payments",
  "type": "json"
} 

Bank information

Access the reference formats and accepted values required for processing bank payouts in Morocco.


Bank account validations


ValidationTypeLengthTypeVerification
Bank accountRIB24numericValidate length


Bank codes


These are the values the bank_code parameter can take in Morocco (positions 1 to 3 in the RIB to be sent in the bank_account parameter).

Bank nameBank Code
ABN Amro023
Al Barid Bank350
Al Akhdar Bank365
Al Amal Bank045
Arab Bank002
Arreda364
ATW International Bank SA605
AWB007
Bank Al-Maghrib001
Bank Al Yousr366
Bank Al Tamweel Wa Al Inma367
Banco Sabadell070
Banque Internationale de Tanger /Credit du Maroc610
Banque Populaire Beni Mellal109
Banque Populaire Berkane163
Banque Populaire Casa Est195
Banque Populaire Casa Sud197
Banque Populaire Casablanca178
Banque Populaire Centre Sud101
Banque Populaire El Houceima105
Banque Populaire El Jadida Safi117
Banque Populaire Errachidia121
Banque Populaire Fes Taza127
Banque Populaire Gharb133
Banque Populaire Jadida130
Banque Populaire Khouribga140
Banque Populaire Laayoune143
Banque Populaire Marrakesh Beni Mellal145
Banque Populaire Meknes148
Banque Populaire Nador El Hoceima150
Banque Populaire Ouarzazate155
Banque Populaire Oujda157
Banque Populaire Rabat Kenitra181
Banque Populaire Safi159
Banque Populaire Tanger Tetouan164
Banque Populaire Taza169
Banque Populaire Tetouan172
Banque Populaire Tiznit175
BCP190
BCP Securities Services048
BMCE011
BMCE Bank Offshore630
BMCI013
BMCI Najmah361
BMCI Offshore Group BNP615
BMAO025
BNDE205
Caixa003
CAM225
CDG060
CDG Capital054
CDM021
CFM050
Chaabi International Bank Offshore625
CIH Bank230
Citi Bank028
Dar Al Amane363
Ex-Wafa Bank019
SGMB022
SMDC031
TGR310
UMNIA Bank360
UMB005
Uniban026