Read a departure's seat inventory
Returns the departure's capacity — null while nobody has stated it — every stretch of its route from one stop to the next with the seats sold, held and available there, every declaration, and how many of its tickets the station's cancellation of the departure affected, to refund or rebook. For a coach with numbered seats, `numbered_seats` is true and `seat_map` lists its seats in display order, each saying whether it is still `free`. **Required permission:** `ticketing.seat-inventory:read`
/ticketing/v1/departures/{departureId}/seat-inventoryReturns the departure's capacity — null while nobody has stated it — every stretch of its route from one stop to the next with the seats sold, held and available there, every declaration, and how many of its tickets the station's cancellation of the departure affected, to refund or rebook. For a coach with numbered seats, numbered_seats is true and seat_map lists its seats in display order, each saying whether it is still free.
Required permission: ticketing.seat-inventory:read
Authorization
oauth2 In: header
Response Body
*/*
curl -X GET "https://example.com/ticketing/v1/departures/{departureId}/seat-inventory"{ "capacity": 0, "capacity_source": "DECLARED", "declarations": [ { "assignment_id": "string", "declared_at": "2019-08-24T14:15:22Z", "declared_by": "string", "id": "string", "reason": "string", "seats": 0 } ], "departure_id": "string", "numbered_seats": true, "seat_map": [ { "free": true, "label": "string" } ], "stretches": [ { "available": 0, "from_station_id": "string", "held": 0, "shortage": 0, "sold": 0, "to_station_id": "string" } ], "tickets_affected_by_cancellation": 0}Declare a departure's seats
Records the seats a driver declares for a departure, which become the seats it can sell. Every declaration is kept with who entered it, when, and the reason given when the count differs from the coach's registered seats. **Required permission:** `ticketing.seat-inventory:write`
Read a departure's selling log
Returns every time the departure's selling opened or closed, oldest first, under `changes`: `opened`, the `reason` (FIRST_ON_SALE, DAY_OPENED, COACH_IN_STATION, PASSING_OPENED, REOPENED, DELAYED, DAY_CLOSED, PASSING_CUTOFF, IMMINENT_DEPARTURE, DEPARTURE_TIME, CANCELLED, CLOSED, WITHDRAWN, COACH_NOT_IN_STATION, PASSING_NOT_YET_OPEN, NOT_SELLABLE), the instant `at` and the departure time then in force. Empty for a departure never on sale. **Required permission:** `ticketing.seat-inventory:read`