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`
/ticketing/v1/tickets/verificationPulls 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
Authorization
oauth2 In: header
Query Parameters
The code scanned off the ticket.
0 <= length <= 2000The ticket's number.
0 <= length <= 64The number of the ticket's sale.
0 <= length <= 64Response Body
*/*
*/*
curl -X GET "https://example.com/ticketing/v1/tickets/verification"{ "tickets": [ { "category": "string", "currency": "string", "departure_id": "string", "eligible_for_refund_or_rebooking": true, "from_station_id": "string", "gate_passages_known": true, "history": [ { "at": "2019-08-24T14:15:22Z", "by": "string", "kind": "string", "note": "string", "reference": "string" } ], "id": "string", "line_code": "string", "ordinal": 0, "price": 0, "qr_active": true, "rebooked_from_ticket_id": "string", "sale_id": "string", "status": "string", "to_station_id": "string" } ]}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`
List the voided ticket codes
Returns the codes a reissue voided, oldest first, from `since` on when given, paginated: each code exactly as printed on the lost or copied paper, its ticket and when it was voided. The gate maker reads it so its offline readers refuse that paper. Changes nothing. **Required permission:** `ticketing.signing-key:read`