---
title: "Get Company Validity"
method: GET
path: "/v1/companies/company/{company_id}/validity/{id}"
tags: ["API / Company", "Use case / Master data sync"]
---

# Get Company Validity

`GET /v1/companies/company/{company_id}/validity/{id}`

## Request

- Base URL: `https://api.qargo.com`
- URL: `https://api.qargo.com/v1/companies/company/{company_id}/validity/{id}`
- Auth: OAuth 2 (client credentials, token URL `/v1/auth/token`)

Fetches a specific validity for a company.

## Path parameters

- `company_id` string, uuid, required
- `id` string, uuid, required

## Response `200`

Successful Response

- CompanyValidityOutput
  - `start_time` string, date-time, required: Start time of the validity
  - `end_time` string, date-time, nullable: End time of the validity from a planning perspective
  - `legal_end_time` string, date-time, nullable: End time of the validity from a legal perspective
  - `generate_unavailability` boolean: Generate a planning unavailability once the validity end time has passed
  - `type` 'ATA_CARNET' | 'BANK_DETAILS' | 'CMR_INSURANCE' | 'COMMON_HEALTH_ENTRY_DOCUMENT' | 'COMMUNICATION' | 'COMMUNICATION_SUBCONTRACTOR' | 'SUBCONTRACTOR_CONTRACT' | 'CREDIT_REPORT' | 'DGSA_CERTIFICATE' | 'ECMT_TRANSPORT_LICENSE' | 'EU_TRANSPORT_LICENSE' | 'EXPORT_HEALTH_CERTIFICATE' | 'FINE' | 'FREIGHT_FORWARDER_LICENSE' | 'SUBCONTRACTOR_LICENSE' | 'NATIONAL_TRANSPORT_LICENSE' | 'SUBCONTRACTOR_OTHER' | 'SUBCONTRACTOR_PERMIT' | 'POWER_OF_ATTORNEY' | 'QUESTIONNAIRE_CUSTOMER' | 'QUESTIONNAIRE_SUBCONTRACTOR' | 'SERVICE_LEVEL_AGREEMENT' | 'SQAS_CERTIFICATE' | 'COMPANY_TDS' | 'TRAILER_CLEANING_CERTIFICATE' | 'VAT_VIES_VALIDATION' | 'SUBCONTRACTOR_WASTE_LICENSE' | 'WASTE_PERMIT_GREEN_EU' | 'WASTE_PERMIT_ORANGE_EU' | 'WASTE_PERMIT_ORANGE_GREEN_EU' | 'XL_CERTIFICATE' | 'DOMESTIC_CARGO_INSURANCE' | 'SUBCONTRACTOR_INSURANCE' | 'INSURANCE_3RD_PARTY_TRAILER' | 'CARGO_INSURANCE' | 'SUBCONTRACTOR_LIABILITY_INSURANCE' | 'SUBCONTRACTOR_MOTOR_INSURANCE', required
  - `external_id` string, nullable: ID of the validity in the external master data system
  - `description` string, nullable
  - `id` string, uuid, required: Unique identifier of the validity

## Other responses

- `400`: Bad Request — invalid input or malformed request
- `401`: Unauthorized — missing or invalid authentication credentials
- `403`: Forbidden — insufficient permissions for this operation
- `422`: Validation Error
- `429`: Too Many Requests — rate limit exceeded. See the `Retry-After` header
- `500`: Internal Server Error
- `503`: Service Unavailable — temporarily unable to handle the request

## Changes

- **2026-09-25** `6abdfcd1a541`: 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Operation history](https://skmtc.dev/qargo/apis/qargo-tms-api/changes/v1/companies/company/:company_id/validity/:id/get.md)

---

[API](https://skmtc.dev/qargo/apis/qargo-tms-api.md) · [All operations](https://skmtc.dev/qargo/apis/qargo-tms-api/llms.txt) · [OpenAPI document](https://skmtc.dev/qargo/apis/qargo-tms-api/revisions/46db2c329351?raw)
