SmartGare
API referenceEndpoints

May this coach run this line on this date?

Composes the line's authorizations, each authorization's status and term, and the coach it covers. Names every authorization that admitted the coach, ordered by grant number, with the carrier accountable under each; on a refusal, names every failed condition of every candidate. The vehicle's own administrative state is a separate check. **Required permission:** `referential.authorization:read`

GET/referential/v1/lines/{lineId}/eligibility

Composes the line's authorizations, each authorization's status and term, and the coach it covers. Names every authorization that admitted the coach, ordered by grant number, with the carrier accountable under each; on a refusal, names every failed condition of every candidate. The vehicle's own administrative state is a separate check.

Required permission: referential.authorization:read

AuthorizationBearer <token>

In: header

Query Parameters

vehicle_id*string
on?string

The date to answer as of, ISO format; the station's today when omitted.

Formatdate

Response Body

*/*

curl -X GET "https://example.com/referential/v1/lines/{lineId}/eligibility?vehicle_id=string"
{  "eligible": true,  "grants": [    {      "grant_id": "string",      "holder_carrier_id": "string",      "number": "string"    }  ],  "reasons": [    "string"  ]}