API referenceEndpoints
Read a tariff release
The release with its status now, its kinds of traveller, its rows and every step taken on it. **Required permission:** `ticketing.tariff:read`
GET
/ticketing/v1/tariff-releases/{id}The release with its status now, its kinds of traveller, its rows and every step taken on it.
Required permission: ticketing.tariff:read
Authorization
oauth2 AuthorizationBearer <token>
In: header
Path Parameters
id*string
Response Body
*/*
curl -X GET "https://example.com/ticketing/v1/tariff-releases/string"{ "categories": [ { "code": "string", "label": "string", "max_age": 0, "min_age": 0, "needs_accompanying_adult": true, "proof_required": true } ], "content_hash": "string", "created_at": "2019-08-24T14:15:22Z", "currency": "string", "effective_at": "2019-08-24T14:15:22Z", "id": "string", "label": "string", "rounding_direction": "string", "rounding_step": 0, "rows": [ { "amount": 0, "cap": 0, "carrier_id": "string", "category": "string", "days_ahead_max": 0, "days_ahead_min": 0, "departure_from": "string", "departure_to": "string", "distance_max_metres": 0, "distance_min_metres": 0, "floor": 0, "from_id": "string", "from_kind": "string", "id": "string", "line_id": "string", "of_category": "string", "percent": 0, "price_kind": "string", "priority": 0, "rate_per_km": 0, "service_type": "string", "to_id": "string", "to_kind": "string", "weekdays": [ "string" ] } ], "status": "DRAFT", "steps": [ { "action": "string", "actor": "string", "at": "2019-08-24T14:15:22Z" } ], "updated_at": "2019-08-24T14:15:22Z"}Create a tariff release
Creates a draft in the deployment's currency, pricing the adult only and holding no row yet. **Required permission:** `ticketing.tariff:write`
Revise a draft tariff release
Replaces the draft's name, rounding, kinds of traveller and rows. **Required permission:** `ticketing.tariff:write`