Events
Get event history for a company.
View as MarkdownReturns a paginated list of events (changes) recorded for the specified company, including changes to officers, addresses, status, and other attributes.
Endpoint
GET /api/v1/companies/:company_id/eventsParameters
| 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 events
import requests
url = 'https://api.statsnet.co/api/v1/companies/12345/events'
headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers).json()
print(response)Response
Success response
{
"ok": true,
"events": [
{
"id": 1,
"jurisdiction": "kz",
"date": "2024-03-01T00:00:00Z",
"attr": "status",
"before": "Active",
"after": "Liquidated",
"identifier": "302233483"
}
],
"meta": [
{ "type": "status", "count": 1 },
{ "type": "address", "count": 3 }
],
"total": 4,
"pagination_total": 4,
"pagination_offset": 0
}Error Handling
Error response
{
"ok": false,
"error": {
"code": 403,
"message": "Forbidden"
}
}