Debtors
Get debtor records for a company.
View as MarkdownReturns a paginated list of debtor records associated with the specified company, including enforcement proceedings and debt details.
Endpoint
GET /api/v1/companies/:company_id/debtorsParameters
| 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 company debtors
import requests
url = 'https://api.statsnet.co/api/v1/companies/12345/debtors'
headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers).json()
print(response)Response
Success response
{
"ok": true,
"debtors": [
{
"id": 1,
"ep_number": "EP-2024-001",
"active": true,
"ep_start_date": "2024-01-15T00:00:00Z",
"ep_end_date": null,
"debt_category": "tax",
"debtor_identifier": "302233483",
"debtor_name": "Company Name",
"recoverer_identifier": "100000001",
"recoverer_name": "Tax Authority",
"amount": 150000.50,
"currency": "KZT",
"jurisdiction": "kz"
}
],
"total": 1,
"pagination_total": 1,
"pagination_offset": 0
}Error Handling
Error response
{
"ok": false,
"error": {
"code": 403,
"message": "Forbidden"
}
}