SmartGare
API referenceEndpoints

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`

GET/ticketing/v1/complaints/{id}

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

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

*/*

*/*

curl -X GET "https://example.com/ticketing/v1/complaints/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"}