SmartGare
API referenceEndpoints

Read a ticket

Returns a ticket with its status, its QR's key version and whether it still boards; never the QR's payload, which only the acts that print a ticket hand out. **Required permission:** `ticketing.ticket:read`

GET/ticketing/v1/tickets/{id}

Returns a ticket with its status, its QR's key version and whether it still boards; never the QR's payload, which only the acts that print a ticket hand out.

Required permission: ticketing.ticket:read

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

*/*

curl -X GET "https://example.com/ticketing/v1/tickets/string"
{  "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"}