SmartGare
API referenceEndpoints

Search complaints

Returns the complaints the caller recorded or whose sale is theirs — every complaint under the supervisor override — newest first, narrowed to a ticket, a sale or a status, paginated. **Required permission:** `ticketing.complaint:read`

GET/ticketing/v1/complaints

Returns the complaints the caller recorded or whose sale is theirs — every complaint under the supervisor override — newest first, narrowed to a ticket, a sale or a status, paginated.

Required permission: ticketing.complaint:read

AuthorizationBearer <token>

In: header

Query Parameters

ticket_id?string

The ticket the complaints concern.

sale_id?string

The sale the complaints concern.

status?string
page?integer

Zero-based page index, at most 10000.

Formatint32
Range0 <= value <= 10000
size?integer

Page size, at most 200.

Formatint32
Range0 <= value <= 200

Response Body

*/*

curl -X GET "https://example.com/ticketing/v1/complaints"
{  "data": [    {      "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"    }  ],  "page": 0,  "size": 0,  "total": 0}