Fetches a specific validity for a company.
Security
oAuth2ClientCredentials
GET
import requests
company_id = "YOUR_company_id_PARAMETER"
id = "YOUR_id_PARAMETER"
url = "https://api.qargo.com/v1/companies/company/" + company_id + "/validity/" + id
headers = {"Authorization": "Bearer <YOUR_TOKEN_HERE>"}
response = requests.get(url, headers=headers)
data = response.json()
print(data)Successful Response
Any of:
End time of the validity from a planning perspective
string (date-time)
Any of:
End time of the validity from a legal perspective
string (date-time)
Enum:"ATA_CARNET""BANK_DETAILS""CMR_INSURANCE""COMMON_HEALTH_ENTRY_DOCUMENT""COMMUNICATION""COMMUNICATION_SUBCONTRACTOR""SUBCONTRACTOR_CONTRACT""CREDIT_REPORT""DGSA_CERTIFICATE""ECMT_TRANSPORT_LICENSE"
Any of:
ID of the validity in the external master data system
string
Response
{ "start_time": "2019-08-24T14:15:22Z", "end_time": "2019-08-24T14:15:22Z", "legal_end_time": "2019-08-24T14:15:22Z", "generate_unavailability": false, "type": "ATA_CARNET", "external_id": "string", "description": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }