Search tickets
Returns the tickets sold, newest first, found by a ticket or sale id or narrowed by optional departure, boarding station, destination station and status filters, paginated. **Required permission:** `ticketing.ticket:read`
/ticketing/v1/ticketsReturns the tickets sold, newest first, found by a ticket or sale id or narrowed by optional departure, boarding station, destination station and status filters, paginated.
Required permission: ticketing.ticket:read
Authorization
oauth2 In: header
Query Parameters
Zero-based page index, at most 10000.
int320 <= value <= 10000Page size, at most 200.
int320 <= value <= 200Response Body
*/*
curl -X GET "https://example.com/ticketing/v1/tickets"{ "data": [ { "cancelled_at": "2019-08-24T14:15:22Z", "category": "string", "currency": "string", "departure_id": "string", "eligible_for_refund_or_rebooking": true, "fare": { "content_hash": "string", "inputs": { "carrier_id": "string", "category": "string", "days_ahead": 0, "departure_date": "2019-08-24", "departure_time": "string", "distance_metres": 0, "from_locality_id": "string", "from_station_id": "string", "line_id": "string", "service_type": "string", "to_locality_id": "string", "to_station_id": "string" }, "row_id": "string", "steps": [ { "amount": 0, "kind": "string", "row_id": "string" } ], "tariff_release_id": "string" }, "from_station_id": "string", "id": "string", "line_code": "string", "ordinal": 0, "price": 0, "qr": { "active": true, "key_version": "string" }, "rebooked_from_ticket_id": "string", "sale_id": "string", "sold_at": "2019-08-24T14:15:22Z", "sold_by": "string", "status": "string", "to_station_id": "string" } ], "page": 0, "size": 0, "total": 0}Withdraw a tariff release
Withdraws a draft, a submitted release, or an approved one whose instant has not come. **Required permission:** `ticketing.tariff:write`
Verify a ticket
Pulls up a ticket for an after-sales enquiry — by the code scanned off it (`qr`), its number (`ticket_id`), or its sale's number (`sale_id`) when the paper is torn or lost, exactly one of them — and answers its state, its departure, its price and its history, oldest first; a sale's number answers every ticket of the sale. Changes nothing and needs no open register. `gate_passages_known` is false while no gate journal reaches the module. **Required permission:** `ticketing.sale:read`