Record a corrective action
Appends a corrective action taken on an open complaint — its kind, what the agent did, and who took it when — and answers the complaint with every action. A refund or a rebooking is made by its own operation and recorded here only once made. An escalation hands the existing case to the counter supervisor. **Required permission:** `ticketing.complaint:write`
/ticketing/v1/complaints/{id}/actionsAppends a corrective action taken on an open complaint — its kind, what the agent did, and who took it when — and answers the complaint with every action. A refund or a rebooking is made by its own operation and recorded here only once made. An escalation hands the existing case to the counter supervisor.
Required permission: ticketing.complaint:write
Authorization
oauth2 In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
*/*
*/*
curl -X POST "https://example.com/ticketing/v1/complaints/string/actions" \ -H "Content-Type: application/json" \ -d '{ "description": "string", "kind": "string" }'{ "actions": [ { "description": "string", "id": "string", "kind": "string", "taken_at": "2019-08-24T14:15:22Z", "taken_by": "string" } ], "category": "string", "description": "string", "dispute": { "handed_over_at": "2019-08-24T14:15:22Z", "handed_over_by": "string", "reason": "string" }, "document": { "actions": [ { "description": "string", "id": "string", "kind": "string", "taken_at": "2019-08-24T14:15:22Z", "taken_by": "string" } ], "closed_at": "2019-08-24T14:15:22Z", "closed_by": "string", "outcome": "string", "reply": "string", "settled_as_dispute": true }, "id": "string", "recorded_at": "2019-08-24T14:15:22Z", "recorded_by": "string", "sale_id": "string", "status": "string", "ticket_id": "string", "traveller_name": "string", "traveller_phone": "string"}Read a complaint
Returns a complaint as it stands, to the agent who recorded it, the agent whose sale it concerns, or a caller holding the supervisor override. **Required permission:** `ticketing.complaint:read`
Close a complaint
Closes a complaint once with its closing document — the outcome and the reply given to the traveller — kept with who closed it and when, and answers the complaint with its document, which states exactly the corrective actions recorded. **Required permission:** `ticketing.complaint:write`