curl --request POST \
--url https://app.sahlfinancial.com/api/v1/kyb/ma/ice-check \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ice": "001234567000062",
"raison_sociale": "SPECIMEN SARL",
"reference": "company-0001",
"environment": "sandbox"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ice: '001234567000062',
raison_sociale: 'SPECIMEN SARL',
reference: 'company-0001',
environment: 'sandbox'
})
};
fetch('https://app.sahlfinancial.com/api/v1/kyb/ma/ice-check', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.sahlfinancial.com/api/v1/kyb/ma/ice-check"
payload = {
"ice": "001234567000062",
"raison_sociale": "SPECIMEN SARL",
"reference": "company-0001",
"environment": "sandbox"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"check_id": "5b8a2f10-6c3d-4e91-8d7a-0f4c1e9b2a63",
"environment": "sandbox",
"ice": "001234567000062",
"format_valid": true,
"format_message": null,
"checksum_ok": true,
"checksum_advisory": "The ICE check key rule is not officially published; a mismatch is never a rejection, but sends an onboarding file to manual review (ice_key_invalid).",
"registry_status": "non_verifie_au_registre",
"registry_note": "Morocco has no public ICE / RC registry API: this ICE was not verified at OMPIC or the DGI.",
"known": {
"raison_sociale": "SPECIMEN SARL",
"address": "1 Rue de l'Exemple, Casablanca",
"source": "sahl_kyb_reads",
"last_seen_at": "2026-11-24T09:00:00+00:00"
},
"raison_sociale_agrees": true
}{
"detail": "Invalid or revoked API key"
}{
"detail": {
"code": "production_api_not_approved",
"message": "This workspace is not yet approved for Production API calls. Request production access in Settings → API. Sandbox stays open meanwhile."
}
}{
"detail": {
"code": "invalid_reference",
"message": "reference must be 1-64 characters of A-Z a-z 0-9 _ . : -"
}
}{
"detail": {
"code": "rate_limit_exceeded",
"message": "More than 60 calls a minute with this API key. Slow down.",
"limit": 60
}
}{
"code": "internal_error",
"message": "An unexpected error occurred",
"details": null
}Check an ICE
Required scope: kyb:ice.
Checks an ICE’s format and its check key, and returns what this workspace’s own earlier /v1/kyb/ma/onboard calls read for that ICE, if any (known). No document is read, no model is called, nothing is billed. No registry is queried: Morocco has no public ICE or RC registry API, so registry_status is always non_verifie_au_registre. The check key rule is not officially published: a mismatch is advisory only.
Choose the environment with the X-Sahl-Environment header or the environment field/parameter; the Sandbox is the default. Two values that disagree are refused (422 environment_conflict). In Production the workspace must be approved by Sahl (403 production_api_not_approved until then), its subscription must be active (403 production_requires_paid_plan), and a Free workspace needs a verified work email (403 work_email_required). The Sandbox is always open.
curl --request POST \
--url https://app.sahlfinancial.com/api/v1/kyb/ma/ice-check \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ice": "001234567000062",
"raison_sociale": "SPECIMEN SARL",
"reference": "company-0001",
"environment": "sandbox"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ice: '001234567000062',
raison_sociale: 'SPECIMEN SARL',
reference: 'company-0001',
environment: 'sandbox'
})
};
fetch('https://app.sahlfinancial.com/api/v1/kyb/ma/ice-check', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.sahlfinancial.com/api/v1/kyb/ma/ice-check"
payload = {
"ice": "001234567000062",
"raison_sociale": "SPECIMEN SARL",
"reference": "company-0001",
"environment": "sandbox"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"check_id": "5b8a2f10-6c3d-4e91-8d7a-0f4c1e9b2a63",
"environment": "sandbox",
"ice": "001234567000062",
"format_valid": true,
"format_message": null,
"checksum_ok": true,
"checksum_advisory": "The ICE check key rule is not officially published; a mismatch is never a rejection, but sends an onboarding file to manual review (ice_key_invalid).",
"registry_status": "non_verifie_au_registre",
"registry_note": "Morocco has no public ICE / RC registry API: this ICE was not verified at OMPIC or the DGI.",
"known": {
"raison_sociale": "SPECIMEN SARL",
"address": "1 Rue de l'Exemple, Casablanca",
"source": "sahl_kyb_reads",
"last_seen_at": "2026-11-24T09:00:00+00:00"
},
"raison_sociale_agrees": true
}{
"detail": "Invalid or revoked API key"
}{
"detail": {
"code": "production_api_not_approved",
"message": "This workspace is not yet approved for Production API calls. Request production access in Settings → API. Sandbox stays open meanwhile."
}
}{
"detail": {
"code": "invalid_reference",
"message": "reference must be 1-64 characters of A-Z a-z 0-9 _ . : -"
}
}{
"detail": {
"code": "rate_limit_exceeded",
"message": "More than 60 calls a minute with this API key. Slow down.",
"limit": 60
}
}{
"code": "internal_error",
"message": "An unexpected error occurred",
"details": null
}Authorizations
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
Body
Response
OK