Get a case by your reference
curl --request GET \
--url https://app.sahlfinancial.com/api/v1/partner/cases/by-reference/{reference} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.sahlfinancial.com/api/v1/partner/cases/by-reference/{reference}', 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/cases/by-reference/{reference}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"case_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"environment": "sandbox",
"status": "<string>",
"subject": {
"kind": "individual",
"name": "<string>"
},
"document_count": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"score_summary": {
"scored": true,
"score": 123,
"risk_level": "<string>",
"eligible_amount": 123,
"model": "<string>",
"coverage": 123,
"blocks": [
{
"key": "<string>",
"assessable": true,
"label": "<string>",
"score": 123,
"max": 123
}
],
"gates_hit": [
"<string>"
]
},
"reference": "<string>",
"score": 123,
"risk_level": "<string>",
"decision": "<string>",
"verdict": {
"source": "kyc_verify",
"passed": true,
"critical_failures": [
{
"id": "<string>",
"label": "<string>",
"severity": "<string>",
"passed": true,
"detail": ""
}
],
"flags": [
{
"id": "<string>",
"label": "<string>",
"severity": "<string>",
"passed": true,
"detail": ""
}
],
"completeness_percent": 123,
"missing_data": [
"<string>"
],
"verified_at": "<string>"
},
"missing_documents": [
"<string>"
],
"requested_documents": [
{
"type": "<string>",
"status": "<string>",
"label": "<string>"
}
],
"decision_at": "2023-11-07T05:31:56Z"
}{
"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": "not_found",
"message": "No such object in this workspace (another workspace's object answers the same)."
}
}{
"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": "internal_error",
"message": "Unexpected error. Quote X-Request-ID to support."
}
}Get a case by your reference
Required scope: cases:read.
The case filed under reference in the call’s environment.
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).
GET
/
v1
/
partner
/
cases
/
by-reference
/
{reference}
Get a case by your reference
curl --request GET \
--url https://app.sahlfinancial.com/api/v1/partner/cases/by-reference/{reference} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.sahlfinancial.com/api/v1/partner/cases/by-reference/{reference}', 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/cases/by-reference/{reference}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"case_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"environment": "sandbox",
"status": "<string>",
"subject": {
"kind": "individual",
"name": "<string>"
},
"document_count": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"score_summary": {
"scored": true,
"score": 123,
"risk_level": "<string>",
"eligible_amount": 123,
"model": "<string>",
"coverage": 123,
"blocks": [
{
"key": "<string>",
"assessable": true,
"label": "<string>",
"score": 123,
"max": 123
}
],
"gates_hit": [
"<string>"
]
},
"reference": "<string>",
"score": 123,
"risk_level": "<string>",
"decision": "<string>",
"verdict": {
"source": "kyc_verify",
"passed": true,
"critical_failures": [
{
"id": "<string>",
"label": "<string>",
"severity": "<string>",
"passed": true,
"detail": ""
}
],
"flags": [
{
"id": "<string>",
"label": "<string>",
"severity": "<string>",
"passed": true,
"detail": ""
}
],
"completeness_percent": 123,
"missing_data": [
"<string>"
],
"verified_at": "<string>"
},
"missing_documents": [
"<string>"
],
"requested_documents": [
{
"type": "<string>",
"status": "<string>",
"label": "<string>"
}
],
"decision_at": "2023-11-07T05:31:56Z"
}{
"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": "not_found",
"message": "No such object in this workspace (another workspace's object answers the same)."
}
}{
"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": "internal_error",
"message": "Unexpected error. Quote X-Request-ID to support."
}
}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
Query Parameters
Response
OK