Count bank connections by status
curl --request GET \
--url https://app.sahlfinancial.com/api/v1/partner/bank-connections/stats \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.sahlfinancial.com/api/v1/partner/bank-connections/stats', 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/bank-connections/stats"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"total": 3,
"connected": 2,
"pending": 1,
"expired": 0,
"failed": 0
}{
"detail": "<string>"
}{
"detail": {
"code": "bank_scope_not_allowed",
"message": "This workspace is not enabled for the partner bank API."
}
}{
"detail": [
{
"type": "missing",
"loc": [
"body",
"bank_code"
],
"msg": "Field required",
"input": {}
}
]
}{
"code": "rate_limit_exceeded",
"message": "Too many requests. Please slow down."
}Count bank connections by status
Required scope: bank:read.
Growth plan. Switched on per workspace by Sahl: until then a key cannot be issued with this scope and calls answer 403 bank_scope_not_allowed. No bank data provider is live: data is a sandbox simulation (send X-Sahl-Environment: sandbox), and in production create, refresh, transactions and analysis answer 409 bank_connect_unavailable.
Counts by status for the workspace.
Count bank connections by status
curl --request GET \
--url https://app.sahlfinancial.com/api/v1/partner/bank-connections/stats \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.sahlfinancial.com/api/v1/partner/bank-connections/stats', 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/bank-connections/stats"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"total": 3,
"connected": 2,
"pending": 1,
"expired": 0,
"failed": 0
}{
"detail": "<string>"
}{
"detail": {
"code": "bank_scope_not_allowed",
"message": "This workspace is not enabled for the partner bank API."
}
}{
"detail": [
{
"type": "missing",
"loc": [
"body",
"bank_code"
],
"msg": "Field required",
"input": {}
}
]
}{
"code": "rate_limit_exceeded",
"message": "Too many requests. Please slow down."
}Authorizations
API key created in the console. Scopes: kyc:extract, kyc:verify, kyc:eid; bank:read, bank:write (Growth plan, enabled per workspace by Sahl).