Subsidiaries
Get subsidiary companies.
View as MarkdownReturns a paginated list of subsidiary companies associated with the specified parent company.
Endpoint
GET /api/v1/companies/:company_id/subsidiariesParameters
| 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 subsidiaries
import requests
url = 'https://api.statsnet.co/api/v1/companies/12345/subsidiaries'
headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers).json()
print(response)Response
Success response
{
"ok": true,
"companies": [
{
"id": 100,
"identifier": "400500600",
"name": "Subsidiary Company LLC",
"jurisdiction": "kz",
"status": "Active"
}
],
"total": 1,
"pagination_total": 1,
"pagination_offset": 0
}Error Handling
Error response
{
"ok": false,
"error": {
"code": 403,
"message": "Forbidden"
}
}