SmartGare
API referenceEndpoints

List the itineraries of several lines

Returns what listing each line's itineraries one by one would, concatenated: every revision of every itinerary, closed revisions included, lines in the order asked and a line named twice once. A line the register does not know contributes nothing, and is not an error. **Required permission:** `referential.itinerary:read`

GET/referential/v1/itineraries

Returns what listing each line's itineraries one by one would, concatenated: every revision of every itinerary, closed revisions included, lines in the order asked and a line named twice once. A line the register does not know contributes nothing, and is not an error.

Required permission: referential.itinerary:read

AuthorizationBearer <token>

In: header

Query Parameters

line_id*array<>

A line id, repeated once per line: at least one and at most two hundred lines.

Items1 <= items <= 200

Response Body

*/*

curl -X GET "https://example.com/referential/v1/itineraries?line_id=string"
{  "data": [    {      "code": "string",      "created_at": "2019-08-24T14:15:22Z",      "departure_zone_id": "string",      "effective_from": "2019-08-24",      "effective_to": "2019-08-24",      "id": "string",      "line_id": "string",      "stops": [        {          "alight_only": true,          "distance_from_origin_meters": 0,          "id": "string",          "kind": "ORIGIN",          "position": 0,          "station_id": "string",          "time_from_origin_minutes": 0        }      ],      "updated_at": "2019-08-24T14:15:22Z",      "version": 0    }  ]}