SmartGare
API referenceEndpoints

List a transport authorization's reference times

Every line the authorization covers or covered, oldest period first, with the reference times H it carries on that line by itinerary code. For a passing coach, each H of the period covering the day asked (today when none) comes with its departure that day: H plus the station's passing coach stop in force that day, on the next day past midnight; `passing_coach_stop_missing` when none is in force. **Required permission:** `referential.authorization:read`

GET/referential/v1/authorizations/{id}/reference-times

Every line the authorization covers or covered, oldest period first, with the reference times H it carries on that line by itinerary code. For a passing coach, each H of the period covering the day asked (today when none) comes with its departure that day: H plus the station's passing coach stop in force that day, on the next day past midnight; passing_coach_stop_missing when none is in force.

Required permission: referential.authorization:read

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Query Parameters

on?string

The day a passing coach's departures are answered for; today at the station when absent.

Formatdate

Response Body

*/*

curl -X GET "https://example.com/referential/v1/authorizations/string/reference-times"
{  "data": [    {      "effective_from": "2019-08-24",      "effective_to": "2019-08-24",      "line_id": "string",      "reference_times": [        {          "departs_at": "2019-08-24T14:15:22Z",          "itinerary_code": "string",          "time": "string"        }      ]    }  ],  "day": "2019-08-24",  "passing_coach_stop_minutes": 0,  "passing_coach_stop_missing": true}