SmartGare
API referenceEndpoints

List a station day's late coaches

Answers the coaches whose scheduled time fell on the station day and that went to the bays after it, by scheduled time: the visit, the coach, the departure, the scheduled time, when it went and how late it was. **Required permission:** `cycle.coach-cycle:read`

GET/cycle/v1/late-coaches

Answers the coaches whose scheduled time fell on the station day and that went to the bays after it, by scheduled time: the visit, the coach, the departure, the scheduled time, when it went and how late it was.

Required permission: cycle.coach-cycle:read

AuthorizationBearer <token>

In: header

Query Parameters

station_date*string
Formatdate

Response Body

*/*

curl -X GET "https://example.com/cycle/v1/late-coaches?station_date=2019-08-24"
{  "data": [    {      "departure_id": "string",      "late_by_minutes": 0,      "late_by_seconds": 0,      "reached_at": "2019-08-24T14:15:22Z",      "scheduled_at": "2019-08-24T14:15:22Z",      "vehicle_cycle_id": "string",      "vehicle_id": "string"    }  ],  "station_date": "2019-08-24"}