Read a sale
Returns a sale and every payment attempt recorded against it. **Required permission:** `ticketing.sale:read`
/ticketing/v1/sales/{id}Returns a sale and every payment attempt recorded against it.
Required permission: ticketing.sale:read
Authorization
oauth2 In: header
Path Parameters
Response Body
*/*
*/*
curl -X GET "https://example.com/ticketing/v1/sales/string"{ "abandoned_at": "2019-08-24T14:15:22Z", "abandoned_by": "string", "agent_session_id": "string", "counterparty": { "carrier_id": "string", "coordination": { "id": "string", "name": "string" }, "ticketing_model": "string" }, "currency": "string", "departure_id": "string", "from_station_id": "string", "id": "string", "line_code": "string", "lines": [ { "amount": 0, "category": "string", "currency": "string", "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" }, "ordinal": 0, "seat": "string" } ], "luggage": { "charge": 0, "parcel_charge": 0, "parcels": 0, "suitcases": 0 }, "paid_at": "2019-08-24T14:15:22Z", "passengers": 0, "payments": [ { "amount": 0, "card_outcome": "string", "card_terminal_transaction_id": "string", "cash_tendered": 0, "change": 0, "id": "string", "means": "string", "recorded_at": "2019-08-24T14:15:22Z", "recorded_by": "string", "reference": "string", "refund_due": true } ], "recommendation": { "followed": true, "id": "string", "override_reason": "string", "override_reason_code": "string", "recommended_departure_id": "string" }, "reference": "string", "register_id": "string", "started_at": "2019-08-24T14:15:22Z", "started_by": "string", "status": "string", "to_station_id": "string", "total": 0, "widening": { "relaxation": "string", "rule_version_id": "string" }}Start a sale
Prices a sale for passengers travelling on a departure from one of our stations to a station it calls at afterwards, at the fare in force for its line, against the caller's open register. The sale awaits payment, holding its passengers' seats until hold_expires_at. **Required permission:** `ticketing.sale:write`
Abandon a sale
Ends a checkout still awaiting payment: the seats it held go back on sale at once, and the sale can no longer be paid. Abandoning it again answers with the same abandonment. **Required permission:** `ticketing.sale:write`