Read a ruling back
Answers one ruling as it was issued: what was asked, what was chosen, what became of every candidate, and the policy and engine versions it can be replayed against. Only a ruling issued at a station this deployment runs, and to the caller unless they hold ticketing.recommendation:read-any; any other is answered as not found. **Required permission:** `ticketing.recommendation:read`
/ticketing/v1/recommendations/{recommendationId}Answers one ruling as it was issued: what was asked, what was chosen, what became of every candidate, and the policy and engine versions it can be replayed against. Only a ruling issued at a station this deployment runs, and to the caller unless they hold ticketing.recommendation:read-any; any other is answered as not found.
Required permission: ticketing.recommendation:read
Authorization
oauth2 In: header
Response Body
*/*
curl -X GET "https://example.com/ticketing/v1/recommendations/{recommendationId}"{ "actor": "string", "asked_through": "string", "candidates": [ { "criterion": "string", "departure_id": "string", "outcome": "string", "position": 0, "reason": "string" } ], "considered_count": 0, "decided_at": "2019-08-24T14:15:22Z", "decided_by_criterion": "string", "decided_by_order": "string", "engine_version": "string", "id": "string", "policy_version_id": "string", "proposals": [ { "departure_id": "string", "kind": "string", "leaves_at": "2019-08-24T14:15:22Z", "position": 0, "travellers": 0 } ], "proposals_withheld": "string", "recommended_departure_id": "string", "requested_station_id": "string", "seats_requested": 0, "selling_station_id": "string", "service_date": "2019-08-24", "steps": [ { "criterion": "string", "exclusions": [ { "criterion": "string", "departure_id": "string", "reason": "string" } ], "status": "string", "surviving_departure_ids": [ "string" ] } ], "unavailable_criteria": [ "string" ]}Ask for a coach recommendation
Ranks the departures submitted by the station's criteria in the order in force, and answers the coach chosen, the criterion that decided, and what became of every other candidate. A ruling is recorded and announced even when no coach is named. **Required permission:** `ticketing.recommendation:request`
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`