SmartGare
API referenceEndpoints

Read a coordination's station day

Each departure of its lines that day in planned-time order: planned and current time, stage, the planned, committed and seen coach kept apart with plate and carrier, the bay, tickets sold and what the hall board says. A source that could not answer is named and only its facts are left out. **Required permission:** `supervision.coordination-day:read`

GET/supervision/v1/coordinations/{id}/day

Each departure of its lines that day in planned-time order: planned and current time, stage, the planned, committed and seen coach kept apart with plate and carrier, the bay, tickets sold and what the hall board says. A source that could not answer is named and only its facts are left out.

Required permission: supervision.coordination-day:read

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Coordination id

Query Parameters

day?string

Station day, ISO date; today in the station's zone when absent

Formatdate

Response Body

*/*

curl -X GET "https://example.com/supervision/v1/coordinations/string/day"
{  "code": "string",  "coordination_id": "string",  "day": "2019-08-24",  "departures": [    {      "bay_code": "string",      "bay_id": "string",      "board_words": "string",      "committed_coach": {        "carrier_id": "string",        "carrier_name": "string",        "plate_number": "string",        "vehicle_id": "string"      },      "current_at": "2019-08-24T14:15:22Z",      "delay_minutes": 0,      "departure_id": "string",      "line_id": "string",      "line_name": "string",      "planned_at": "2019-08-24T14:15:22Z",      "planned_coach": {        "carrier_id": "string",        "carrier_name": "string",        "plate_number": "string",        "vehicle_id": "string"      },      "seen_coach": {        "carrier_id": "string",        "carrier_name": "string",        "plate_number": "string",        "vehicle_id": "string"      },      "stage": "string",      "tickets_sold": 0    }  ],  "name": "string",  "read_at": "2019-08-24T14:15:22Z",  "unavailable_sources": [    "string"  ]}