SmartGare
API referenceEndpoints

List the authorizations covering a line on a date

Several is the ordinary case; which of them runs a given departure is not decided here. Each status is derived on the supplied date, not the server date. **Required permission:** `referential.authorization:read`

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

Several is the ordinary case; which of them runs a given departure is not decided here. Each status is derived on the supplied date, not the server date.

Required permission: referential.authorization:read

AuthorizationBearer <token>

In: header

Query Parameters

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}/authorizations"
[  {    "access_window_minutes": 0,    "arrival_axis_code": "string",    "category_codes": [      "string"    ],    "coach": {      "capacity": 0,      "plate_number": "string",      "uhf_tag_missing": true,      "vehicle_id": "string"    },    "commercial_name": "string",    "coordination_id": "string",    "created_at": "2019-08-24T14:15:22Z",    "dossier": "string",    "dossier_id": "string",    "driver_code_issued_at": "2019-08-24T14:15:22Z",    "grade_code": "string",    "id": "string",    "number": "string",    "owner_name": "string",    "series_code": "string",    "service_type": "ARRIVEE",    "source": {      "document": "string",      "page": "string",      "row": "string"    },    "status": "ACTIVE",    "updated_at": "2019-08-24T14:15:22Z",    "valid_from": "2019-08-24",    "valid_until": "2019-08-24"  }]