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`
/ticketing/v1/departures/{departureId}/seat-declarationsRecords 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
Authorization
oauth2 In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
*/*
*/*
curl -X POST "https://example.com/ticketing/v1/departures/{departureId}/seat-declarations" \ -H "Content-Type: application/json" \ -d '{ "seats": 1 }'{ "assignment_id": "string", "declared_at": "2019-08-24T14:15:22Z", "declared_by": "string", "departure_id": "string", "id": "string", "reason": "string", "seats": 0}Search the departures sellable to a town
Returns, earliest first, every departure of the day the journey search offers from the station sold from to a station of the town, each as that search offers it — line, distance, fare per passenger and seats still free — with the station it gets off at (alighting), the station it boards at (boarding) and the last stop of its route (terminus, null when the referential does not know that station). A station retired or a town suspended is not offered; a town nobody serves offers nothing. Given a `time`, only the departures leaving at or after it, station time, on that day are offered. With no `date`, it reaches as the journey search does, as far as the station's search horizon. Refused like the journey search. The departures are put to the station's coach selection as the journey search puts them, the one it recommends first; when they get off at several stations of the town, `recommendation` is UNAVAILABLE with reason several_alighting_stations. When nothing answers the request as made, the search is widened as the journey search is, under `widening`, each offer naming the `relaxation` that found it. `time`, `passengers` and `carrier_id` repeat the request as made, never the offers found. **Required permission:** `ticketing.sale:read`
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`