List the station's counters
Returns every workstation the station operates, in its catalog's order, each with the agent session open there, whoever holds it, or null when nobody is signed in. While the deployment declares no catalog, the workstations are those an open session is held at. **Required permission:** `ticketing.agent-session:read`
/ticketing/v1/countersReturns every workstation the station operates, in its catalog's order, each with the agent session open there, whoever holds it, or null when nobody is signed in. While the deployment declares no catalog, the workstations are those an open session is held at.
Required permission: ticketing.agent-session:read
Authorization
oauth2 In: header
Response Body
*/*
curl -X GET "https://example.com/ticketing/v1/counters"{ "counters": [ { "session": { "agent": "string", "id": "string", "opened_at": "2019-08-24T14:15:22Z", "register": { "currency": "string", "declared_float": 0, "id": "string", "opened_at": "2019-08-24T14:15:22Z", "status": "OPEN" }, "workstation": "string" }, "workstation": "string" } ]}Unpair a counter terminal
Ends a terminal's pairing when it is replaced or moved: its secret opens no shift from then on and its counter can be paired again. A shift already open is untouched. **Required permission:** `ticketing.counter-terminal:pair`
Search the departures sellable for a journey
Lists the departures of a station operational day that a sale from one of our stations to the station travelled to could still be made on, each priced as that sale would be and with the seats still free on every stretch of the journey — null while nobody has stated its seats. A departure that is cancelled, withdrawn, closed or gone, or that does not reach the station travelled to after the station sold from, is not offered. A departure whose route was declared without distances is offered with no distance, priced only by a tariff row that needs none. Given a `time`, only the departures leaving at or after it, station time, on that day are offered. With no `date`, the search reaches from its instant as far as the station's search horizon, answered as `reachesUntil` with the rule version that set it, or the station's day of the search while none is in force. The departures are put to the station's coach selection: the one it recommends comes first, then every other earliest first, and `recommendation` carries the ruling to record on the sale, the criterion that decided and why each other departure lost — or, with status UNAVAILABLE, why there is none. When nothing answers the request as made, the search is widened: `widening` lists every relaxation in order (TIME_OF_DAY, OTHER_CARRIERS unless the station's rule orders others, among them OTHER_COACH_TYPES and LATER_DAYS) with its outcome, and each offer names the `relaxation` that found it; both are null when the request as made is answered. `time`, `passengers` and `carrier_id` repeat the request as made, never the offers found. **Required permission:** `ticketing.sale:read`