View Metadata
Get display metadata for a company.
View as MarkdownReturns metadata used for displaying company information, including counts of available data in each category.
Endpoint
GET /api/v1/companies/:company_id/view/metaParameters
| Parameter | Type | In | Description |
|---|---|---|---|
company_id | integer | path | The unique identifier of the company. |
Code Examples
Get view metadata
import requests
url = 'https://api.statsnet.co/api/v1/companies/12345/view/meta'
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_count": 3,
"stores_count": 0,
"certs_count": 2,
"debtors_count": 1,
"quasi_contracts_count": 0,
"jobs_count": 5,
"places_count": 0,
"states_count": 0,
"pos_terminals_count": 0,
"domains_count": 1,
"scoring_count": 0
}Error Handling
Error response
{
"ok": false,
"error": {
"code": 403,
"message": "Forbidden"
}
}