Fetches a specific validity for a resource
Security
oAuth2ClientCredentials
GET
import requests
resource_id = "YOUR_resource_id_PARAMETER"
id = "YOUR_id_PARAMETER"
url = "https://api.qargo.com/v1/resources/resource/" + resource_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:"EUROVIGNET""FUEL_CARD""FINE""CONTAINER_CERTIFICATE""CONTAINER_DAMAGE_REPORT""CONTAINER_INSPECTION_REPORT""CONTAINER_LEASE""CONTAINER_MAINTENANCE_REPORT""CONTAINER_REPAIR_REPORT""CONTAINER_TANK_TEST_CERTIFICATE_2Y5"
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": "EUROVIGNET", "external_id": "string", "description": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }