Quasi-Contracts
Get quasi-contract records for a company.
View as MarkdownReturns a paginated list of quasi-contracts associated with the specified company.
Endpoint
GET /api/v1/companies/:company_id/quasi_contractsParameters
| Parameter | Type | In | Description |
|---|---|---|---|
company_id | integer | path | The unique identifier of the company. |
page | integer | query | Page number (default: 1). |
limit | integer | query | Records per page (default: 100). |
Code Examples
Get quasi-contracts
import requests
url = 'https://statsnet.co/api/v1/companies/12345/quasi_contracts'
headers = {
'Authorization': 'Bearer sk_live_YOUR_KEY',
'Content-Type': 'application/json'
}
response = requests.get(url, headers=headers).json()
print(response)Response
Success response
{
"quasi_contracts": [
{
"id": 1,
"lot_id": 4587123,
"lot_name": "Поставка канцелярских товаров",
"status": "Договор заключен",
"advert_id": 358214,
"advert_name": "Закуп товаров и услуг",
"customer_identifier": "100000001",
"customer_name": "Government Agency",
"count": 10,
"price": 5000000,
"supplier_identifier": "302233483",
"supplier_name": "Company Name LLC",
"date": "2024-01-15T00:00:00Z",
"source_url": "https://mp.eep.mitwork.kz/ru/contract/card/12345",
"source": "eep"
}
],
"total": 1,
"pagination_total": 1,
"pagination_offset": 0
}Error Handling
Error response
{
"status": 403,
"message": "access denied"
}This is a paid endpoint. It can also respond with 402 — {"status": 402, "message": "payment required"} — when the subscription is expired, canceled, or past due, and 429 — {"status": 429, "message": "quota exhausted"} — when the plan’s report quota for the current period is used up.