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 decimalsbeneficiary.document.type namebeneficiary.document.id format
MAMAD2CNIEBetween 5 to 20 characters

Mandatory parameters

Bank transfers

Bank transfer parametersB2CB2BP2P
external_idYesYesYes
payment_method_idYesYesYes
flow_typeYesYesYes
purposeYesYesYes
countryYesYesYes
amountYesYesYes
currencyYesYesYes
beneficiary.first_nameYes-Yes
beneficiary.last_nameYes-Yes
beneficiary.business_name-Yes-
beneficiary.bank_account.bank_codeYesYesYes
beneficiary.bank_account.branchYesYesYes
beneficiary.bank_account.accountYesYesYes
beneficiary.address.streetYesYesYes
remitter.first_name--Yes
remitter.last_name--Yes
remitter.address.country--Yes
remitter.document.type--Yes
remitter.document.id--Yes
remitter.birth_info.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
external_idPayout identification at the merchant's end. Maximum 100 characters.
payment_method_idPayment method. For bank transfers, use BANK_TRANSFER.
flow_typePayout flow type. Valid values: B2C (Business to Consumer), B2B (Business to Business), or P2P (Person to Person).
purposePayout purpose code. See purpose codes reference.
countryCountry code. For Morocco, use MA.
amountPayout amount in MAD. Use up to 2 decimal places.
currencySource currency of the FX operation. For Morocco, use MAD or USD. Payouts are always paid in local currency to the beneficiary.
beneficiary.first_nameBeneficiary's first name. Maximum 50 characters.
beneficiary.last_nameBeneficiary's last name. Maximum 50 characters.
beneficiary.bank_account.bank_codeBeneficiary's bank code. First 3 digits of the RIB (Relevé d'Identité Bancaire). See the list of valid bank codes.
beneficiary.bank_account.branchBeneficiary's branch code from the RIB.
beneficiary.bank_account.accountBeneficiary's account number from the RIB.
beneficiary.address.streetBeneficiary's street address. Maximum 200 characters.
remitter.first_nameRemitter's first name. Maximum 50 characters. Mandatory only for remittance (P2P).
remitter.last_nameRemitter's last name. Maximum 50 characters. Mandatory only for remittance (P2P).
remitter.address.countryRemitter's country code in ISO 3166-1 alpha-2 format. Mandatory only for remittance (P2P).
remitter.document.typeRemitter's identification document type: ID for national identification number, PASS for passport. Mandatory only for remittance (P2P).
remitter.document.idRemitter's document number. Maximum 45 characters. Mandatory only for remittance (P2P).
remitter.birth_info.dateRemitter's birth date in YYYY-MM-DD format. Mandatory only for remittance (P2P).

Example request

{
  "external_id": "MA_B2C_001",
  "payment_method_id": "BANK_TRANSFER",
  "flow_type": "B2C",
  "purpose": "OTHER_SERVICES",
  "country": "MA",
  "amount": 2977.89,
  "currency": "MAD",
  "beneficiary": {
    "first_name": "JUAN",
    "last_name": "PEREZ",
    "address": {
      "street": "14 Boulevard Al Massira Al Khadra"
    },
    "bank_account": {
      "bank_code": "007",
      "branch": "787",
      "account": "001988877665431292049385"
    }
  },
  "notification_url": "https://thisisawebsite.net/payments"
}
{
  "external_id": "MA_P2P_002",
  "payment_method_id": "BANK_TRANSFER",
  "flow_type": "P2P",
  "purpose": "REMITTANCES",
  "country": "MA",
  "amount": 1500.00,
  "currency": "MAD",
  "beneficiary": {
    "first_name": "JUAN",
    "last_name": "PEREZ",
    "address": {
      "street": "14 Boulevard Al Massira Al Khadra"
    },
    "bank_account": {
      "bank_code": "007",
      "branch": "787",
      "account": "001988877665431292049385"
    }
  },
  "remitter": {
    "first_name": "Ahmed",
    "last_name": "Hassan",
    "document": {
      "type": "ID",
      "id": "A12345678"
    },
    "birth_info": {
      "date": "1985-01-15"
    },
    "address": {
      "street": "123 Main Street",
      "city": "Casablanca",
      "country": "ES"
    },
    "nationality": "ES"
  },
  "notification_url": "https://thisisawebsite.net/payments"
}

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 beneficiary.bank_account.bank_code parameter can take in Morocco (positions 1 to 3 in the RIB).

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