SmartGare
API referenceEndpoints

Hand a complaint over as a dispute

Hands an open complaint the agent cannot resolve over as a dispute: the same case, its actions and history as they were, marked disputed with who handed it over, when and why. From then on only the counter supervisor records actions on it and closes it. Moves no money and changes no ticket. **Required permission:** `ticketing.complaint:write`

POST/ticketing/v1/complaints/{id}/dispute

Hands an open complaint the agent cannot resolve over as a dispute: the same case, its actions and history as they were, marked disputed with who handed it over, when and why. From then on only the counter supervisor records actions on it and closes it. Moves no money and changes no ticket.

Required permission: ticketing.complaint:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*HandOverComplaintAsDisputeRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/ticketing/v1/complaints/string/dispute" \  -H "Content-Type: application/json" \  -d '{    "reason": "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"}