API referenceEndpoints
May this coach run this line on this date?
Composes the line's authorization, the authorization's status and term, and the coach the authorization covers. Every failed condition is named — the vehicle's own administrative state is a separate check.
GET
/referential/v1/authorizations/lines/{lineId}/eligibilityComposes the line's authorization, the authorization's status and term, and the coach the authorization covers. Every failed condition is named — the vehicle's own administrative state is a separate check.
Authorization
oauth2 AuthorizationBearer <token>
In: header
Path Parameters
lineId*string
Query Parameters
vehicleId*string
on*string
Format
dateResponse Body
*/*
curl -X GET "https://example.com/referential/v1/authorizations/lines/string/eligibility?vehicleId=string&on=2019-08-24"{ "eligible": true, "grantId": "string", "reasons": [ "string" ]}