SmartGare
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}/eligibility

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.

AuthorizationBearer <token>

In: header

Path Parameters

lineId*string

Query Parameters

vehicleId*string
on*string
Formatdate

Response 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"  ]}