Skip to main content
POST
Check a Moroccan RIB or IBAN

Authorizations

Authorization
string
header
required

API key created in the console. Scopes: kyc:extract, kyc:verify, kyc:eid; kyb:onboard, kyb:ice; statements:read; webhooks:manage; requests:read, requests:write; bank:read, bank:write (Growth plan, enabled per workspace by Sahl); registry:read; cases:read; scoring:read, scoring:write; policy:read, policy:write; usage:read. The Sandbox specimen routes, GET /v1/partner/me and GET /v1/partner/errors need any valid key.

Headers

X-Sahl-Environment
string | null

sandbox (default) or production. Same meaning as the environment parameter; if both are sent they must agree.

Body

application/json
rib
string
required

24-digit Moroccan RIB or 28-character Moroccan IBAN.

Required string length: 1 - 60
environment
enum<string> | null

sandbox or production; X-Sahl-Environment wins when only it is sent. Sandbox by default.

Available options:
sandbox,
production

Response

OK

available
boolean
required

False when the third party did not answer; then only message is set.

environment
enum<string>
required

The environment of the call.

Available options:
sandbox,
production
kind
enum<string>
required

What was sent.

Available options:
rib,
iban
normalized
string
required

Upper case, separators removed.

valid
boolean
required

RIB key (and IBAN check digits) hold.

bank_known
boolean
required

The bank code is a known Moroccan bank.

note
string
required

What the check does not prove.

source
string | null

The registry or rule that answered.

message
string | null

Why the number is not valid or not found.

formatted
string | null

The RIB grouped bank / town / account / key.

rib_key_ok
boolean | null

The RIB key holds.

iban_check_ok
boolean | null

The IBAN check digits hold (IBAN only).

bank_code
string | null

First three digits.

bank_name
string | null

The bank the code names.

bank_logo
string | null

Sahl's bank logo id for that bank.

account_checked
boolean
default:false

Always false: no account lookup.