API docs

Certificates

Get certificate records for a company.

Returns a paginated list of certificates (conformity, origin, etc.) associated with the specified company.

Endpoint

GET /api/v1/companies/:company_id/certs

Parameters

ParameterTypeInDescription
company_idintegerpathThe unique identifier of the company.
pageintegerqueryPage number (default: 1).
limitintegerqueryRecords per page (default: 100).

Code Examples

Get certificates

import requests

url = 'https://statsnet.co/api/v1/companies/12345/certs'
headers = {
  'Authorization': 'Bearer sk_live_YOUR_KEY',
  'Content-Type': 'application/json'
}

response = requests.get(url, headers=headers).json()
print(response)

Response

Success response

{
  "certificates": [
    {
      "id": 1,
      "number": "CERT-2024-0001",
      "start_date": "2024-01-01T00:00:00Z",
      "issue_date": "2024-01-01T00:00:00Z",
      "end_date": "2025-01-01T00:00:00Z",
      "status": "active",
      "applicant_desc": "Company Name LLC",
      "applicant_identifier": "302233483",
      "product_name": "Industrial equipment",
      "hs_code": "8471.30",
      "doc_type": "conformity",
      "agency": "National Certification Body",
      "jurisdiction": "kz",
      "created_at": "2021-01-14T00:06:22.439Z",
      "updated_at": "2021-01-15T13:24:54.248Z"
    }
  ],
  "total": 1,
  "pagination_total": 1,
  "pagination_offset": 0
}

Error Handling

Error response

{
  "status": 403,
  "message": "access denied"
}

This endpoint can also return {"status": 402, "message": "payment required"} when the subscription is canceled or expired, and {"status": 429, "message": "quota exhausted"} when the plan’s report quota for the current period is used up.