Government Contracts
Get government contract records for a company.
View as MarkdownReturns a paginated list of government procurement contracts where the specified company is either a supplier or customer.
Endpoint
GET /api/v1/companies/:company_id/gov-contractsParameters
| 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 government contracts
import requests
url = 'https://api.statsnet.co/api/v1/companies/12345/gov-contracts'
headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers).json()
print(response)Response
Success response
{
"ok": true,
"government_contract": [
{
"id": 1,
"trd_buy_number_anno": "TRD-2024-001",
"trd_buy_name_ru": "Закупка оборудования",
"supplier_bin": "302233483",
"supplier_name": "Company Name LLC",
"contract_number": "CNT-2024-001",
"contract_sum": "15000000",
"sign_date": "2024-01-15",
"contract_end_date": "2024-12-31",
"customer_bin": "100000001",
"customer_name": "Government Agency",
"jurisdiction": "kz"
}
],
"meta": {
"total": 1,
"year_count": 1,
"year_sum": 15000000,
"count_trade": 1
},
"total": 1,
"pagination_total": 1,
"pagination_offset": 0
}Error Handling
Error response
{
"ok": false,
"error": {
"code": 403,
"message": "Forbidden"
}
}