API referenceEndpoints
Revise a draft tariff release
Replaces the draft's name, rounding, kinds of traveller and rows. **Required permission:** `ticketing.tariff:write`
PUT
/ticketing/v1/tariff-releases/{id}Replaces the draft's name, rounding, kinds of traveller and rows.
Required permission: ticketing.tariff:write
Authorization
oauth2 AuthorizationBearer <token>
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
body*ReviseTariffReleaseRequest
Response Body
*/*
*/*
curl -X PUT "https://example.com/ticketing/v1/tariff-releases/string" \ -H "Content-Type: application/json" \ -d '{ "categories": [ { "code": "string", "label": "string", "needs_accompanying_adult": true, "proof_required": true } ], "label": "string", "rounding_direction": "UP", "rounding_step": 0, "rows": [] }'{ "category_count": 0, "id": "string", "revised_at": "2019-08-24T14:15:22Z", "row_ids": [ "string" ]}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`
Approve a tariff release
Puts a submitted release in force at once, or at a later instant. **Required permission:** `ticketing.tariff:approve`