API referenceEndpoints
Get a departure
**Required permission:** `traffic.departure:read`
GET
/traffic/v1/departures/{id}Required permission: traffic.departure:read
Authorization
oauth2 AuthorizationBearer <token>
In: header
Path Parameters
id*string
Departure id
Response Body
*/*
curl -X GET "https://example.com/traffic/v1/departures/string"{ "closed_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "delay_minutes": 0, "departure_at": "2019-08-24T14:15:22Z", "generation_source": "SCHEDULE", "id": "string", "itinerary_id": "string", "line_id": "string", "planned_departure_at": "2019-08-24T14:15:22Z", "planned_station_call_local_datetime": "2019-08-24T14:15:22Z", "schedule_id": "string", "station_call_local_datetime": "2019-08-24T14:15:22Z", "station_operational_date": "2019-08-24", "status": "SCHEDULED", "timetable_service_date": "2019-08-24", "updated_at": "2019-08-24T14:15:22Z"}Read a departure's seats
The seats on the departure's busiest stretch, counted against the coach committed now: its capacity (null while nothing gives one), the seats sold, the seats held at a checkout, and the seats still free. **Required permission:** `traffic.seat:read`
Cancel a departure
**Required permission:** `traffic.departure:write`