curl --request PUT \
--url https://app.sahlfinancial.com/api/v1/partner/policy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"client_type": "individual",
"config": {
"sanctions_name_match_threshold": 0.9
}
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({client_type: 'individual', config: {sanctions_name_match_threshold: 0.9}})
};
fetch('https://app.sahlfinancial.com/api/v1/partner/policy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.sahlfinancial.com/api/v1/partner/policy"
payload = {
"client_type": "individual",
"config": { "sanctions_name_match_threshold": 0.9 }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"client_type": "individual",
"kind": "kyc",
"environment": "sandbox",
"source": "tenant",
"policy_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": 123,
"managed_by_flow": true,
"created_at": "2023-11-07T05:31:56Z",
"parameters": {
"duplicate_document_action": "flag",
"duplicate_hamming_threshold": 123,
"name_match_threshold": 123,
"max_document_age_days_by_type": {},
"min_applicant_age_years": 123,
"max_id_age_years": 123,
"liveness_strictness": "standard",
"fake_image_action": "flag",
"sanctions_pep_action": "refuse",
"sanctions_name_match_threshold": 123
},
"locked": [
"<string>"
],
"regulator_locked": [
"<string>"
],
"config": {
"document_country": "CA",
"required_documents": {},
"document_slot_enforcement": "off",
"enabled_checks": [
"<string>"
],
"thresholds": {
"document_recency_days": 90,
"backdate_days": 14,
"id_expiry_days": 90,
"duplicate_document_action": "flag",
"duplicate_hamming_threshold": 6,
"name_match_threshold": 0.5,
"max_document_age_days_by_type": {},
"min_applicant_age_years": 0,
"max_id_age_years": 0
},
"risk_bands": {
"low_max_points": 1,
"medium_max_points": 3
},
"screening": {
"sanctions_bundle": true,
"canchek": false,
"pep_hio_determination": false
},
"third_party_determination": false,
"eid_required_non_face_to_face": false,
"corporations_canada_lookup": true,
"beneficial_ownership_threshold_pct": 25,
"record_retention_days": 1825,
"liveness_strictness": "standard",
"fake_image_action": "flag",
"sanctions_pep_action": "refuse",
"sanctions_name_match_threshold": 0.88,
"locked": [
"<string>"
]
}
}{
"detail": {
"code": "partner_identity_rejected",
"message": "The key is bound to a service account and X-Partner-Identity was missing or did not verify for it."
}
}{
"detail": "API key lacks the required scope"
}{
"detail": {
"code": "policy_conflict",
"message": "The policy was changed at the same time; read it again and retry."
}
}{
"detail": {
"code": "invalid_environment",
"message": "environment / X-Sahl-Environment must be 'sandbox' or 'production'."
}
}{
"detail": {
"code": "rate_limit_exceeded",
"message": "Too many calls a minute: per API key on the partner routes, or per key / per address at the edge. Wait for Retry-After."
}
}{
"detail": {
"code": "commit_failed",
"message": "The change could not be saved; nothing changed. Retry."
}
}Save a new KYC policy version
Required scope: policy:write.
Validate and save the next version of one client type’s policy, and return it.
Refused with 422 kyc_policy_lock_required when the config drops an item the
regulator locks, misses the regime’s floors, or unlocks any item locked in the
policy in force (an API key can add locks and tighten values, never loosen a lock).
409 policy_conflict when another save landed at the same time.
Choose the environment with the X-Sahl-Environment header or the environment parameter or field; the Sandbox is the default. Two values that disagree are refused (422 environment_conflict).
curl --request PUT \
--url https://app.sahlfinancial.com/api/v1/partner/policy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"client_type": "individual",
"config": {
"sanctions_name_match_threshold": 0.9
}
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({client_type: 'individual', config: {sanctions_name_match_threshold: 0.9}})
};
fetch('https://app.sahlfinancial.com/api/v1/partner/policy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.sahlfinancial.com/api/v1/partner/policy"
payload = {
"client_type": "individual",
"config": { "sanctions_name_match_threshold": 0.9 }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"client_type": "individual",
"kind": "kyc",
"environment": "sandbox",
"source": "tenant",
"policy_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": 123,
"managed_by_flow": true,
"created_at": "2023-11-07T05:31:56Z",
"parameters": {
"duplicate_document_action": "flag",
"duplicate_hamming_threshold": 123,
"name_match_threshold": 123,
"max_document_age_days_by_type": {},
"min_applicant_age_years": 123,
"max_id_age_years": 123,
"liveness_strictness": "standard",
"fake_image_action": "flag",
"sanctions_pep_action": "refuse",
"sanctions_name_match_threshold": 123
},
"locked": [
"<string>"
],
"regulator_locked": [
"<string>"
],
"config": {
"document_country": "CA",
"required_documents": {},
"document_slot_enforcement": "off",
"enabled_checks": [
"<string>"
],
"thresholds": {
"document_recency_days": 90,
"backdate_days": 14,
"id_expiry_days": 90,
"duplicate_document_action": "flag",
"duplicate_hamming_threshold": 6,
"name_match_threshold": 0.5,
"max_document_age_days_by_type": {},
"min_applicant_age_years": 0,
"max_id_age_years": 0
},
"risk_bands": {
"low_max_points": 1,
"medium_max_points": 3
},
"screening": {
"sanctions_bundle": true,
"canchek": false,
"pep_hio_determination": false
},
"third_party_determination": false,
"eid_required_non_face_to_face": false,
"corporations_canada_lookup": true,
"beneficial_ownership_threshold_pct": 25,
"record_retention_days": 1825,
"liveness_strictness": "standard",
"fake_image_action": "flag",
"sanctions_pep_action": "refuse",
"sanctions_name_match_threshold": 0.88,
"locked": [
"<string>"
]
}
}{
"detail": {
"code": "partner_identity_rejected",
"message": "The key is bound to a service account and X-Partner-Identity was missing or did not verify for it."
}
}{
"detail": "API key lacks the required scope"
}{
"detail": {
"code": "policy_conflict",
"message": "The policy was changed at the same time; read it again and retry."
}
}{
"detail": {
"code": "invalid_environment",
"message": "environment / X-Sahl-Environment must be 'sandbox' or 'production'."
}
}{
"detail": {
"code": "rate_limit_exceeded",
"message": "Too many calls a minute: per API key on the partner routes, or per key / per address at the edge. Wait for Retry-After."
}
}{
"detail": {
"code": "commit_failed",
"message": "The change could not be saved; nothing changed. Retry."
}
}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
A new version of one client type's policy.
Response
OK
The policy in force for one client type in one environment.