Bank Accounts
Get bank account records for a company.
View as MarkdownReturns a paginated list of bank accounts associated with the specified company.
Endpoint
GET /api/v1/companies/:company_id/bank-accountsParameters
| Parameter | Type | In | Description |
|---|---|---|---|
company_id | integer | path | The unique identifier of the company. |
page | integer | body | Page number (default: 1). |
limit | integer | body | Records per page (default: 100). |
Code Examples
Get bank accounts
import requests
url = 'https://api.statsnet.co/api/v1/companies/12345/bank-accounts'
headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers).json()
print(response)Response
Success response
{
"ok": true,
"bank_accounts": [
{
"id": 1,
"identifier": "302233483",
"iban": "KZ123456789012345678",
"bank_name": "Kaspi Bank",
"bank_bic": "CASPKZKA",
"date_open": "2020-05-10T00:00:00Z",
"holder": "Company Name",
"jurisdiction": "kz",
"created_at": "2021-01-14T00:06:22.439Z",
"updated_at": "2021-01-15T13:24:54.248Z"
}
],
"total": 1,
"pagination_total": 1,
"pagination_offset": 0
}Error Handling
Error response
{
"ok": false,
"error": {
"code": 403,
"message": "Forbidden"
}
}