# Support integration

## Client Issue Delegation

:::note

Available for enabled API accounts and selected problem types. Contact Miare to enable this integration.

:::

Receive a [trip issue webhook](/webhooks), choose one of the issue's
`resolution_actions`, and [resolve the issue](/api/public/support#resolve-issue) before its
`resolution_deadline`. The owning client can resolve a delegated issue reported
by a courier. No pick or confirmation request is required.

| Resolution action | Meaning | Result |
|-------------------|---------|--------|
| `cancel_trip` | Accept the reported issue. | Cancel the affected trip using the existing cancellation and accounting rules, then close this issue. Any replacement booking is your responsibility. |
| `reject_issue` | Disagree with the reported issue. | Add a reply to the courier's issue conversation and close this issue. Trip progress is unchanged. |

Send only an action offered for that issue. Miare support, the reporting courier or
automatic handling may also close it; `trip_issue_resolved` reports completion.

### Issue object

[List Issues](/api/public/support#list-issues) and [Resolve Issue](/api/public/support#resolve-issue) return this representation.
IDs are UUID strings. Timestamps use `YYYY-MM-DDTHH:mm:ssZ` or
`YYYY-MM-DDTHH:mm:ss±HHmm`, for example `2026-11-19T13:00:00+0330`.
All fields below are present unless marked **Delegated only**; nullable fields can be `null`.

| Property | Type | Description |
|----------|------|-------------|
| `id` | string [UUID] | Issue ID used in the resolve URL. |
| `trip_id` | string [UUID] | Affected client trip ID; retains the original trip ID after batching. |
| `problem_id` | string [UUID] | Problem type ID. |
| `reported_at` | string [timestamp] | When the issue was reported. |
| `reporter_type` | string | `client` or `miare`; courier reports use `miare`. |
| `resolved_at` | string [timestamp], nullable | Resolution time; `null` while unresolved. |
| `resolver_type` | string, nullable | `client` or `miare`; support, courier and automatic closure use `miare`. `null` while unresolved. |
| `resolve_description` | string, nullable | Resolution explanation, if provided. Miare may generate this text; its wording can vary. |
| `picked_at` | string [timestamp], nullable | When the issue was picked. Picking is not needed for delegated resolution. |
| `picker_type` | string, nullable | `client` or `miare`; `null` before picking. |
| `state` | string | `reported`, `picked` or `resolved`. |
| `messages` | array of objects | Issue message history, including the reply added when rejecting an issue. Webhook issue objects omit this field. |
| `messages[].id` | string [UUID] | Message ID. |
| `messages[].created_at` | string [timestamp] | Message creation time. |
| `messages[].sender_type` | string | `client` or `miare`. |
| `messages[].type` | string | `text` or `info`. |
| `messages[].message` | string | Message text. |
| `messages[].image_url` | string | Image URL, or an empty string. |
| `description` | string, nullable | **Delegated only.** Original issue description. |
| `resolution_actions` | array of strings | **Delegated only.** Nonempty list of available resolution action keys. |
| `resolution_deadline` | string [timestamp] | **Delegated only.** Cutoff for submitting a new client resolution command. |
| `resolution_action` | string, nullable | **Delegated only.** Applied action key. `null` while unresolved or when closed without a resolution action, such as by support or the courier. |

## Ordinary support issues

Use [List Problems](/api/public/support#list-problems) to map problem IDs. Report only problems whose `reporter_type` is `client`, and provide a description when required. [Report Issue](/api/public/support#report-issue) accepts a trip ID or course ID; the trip ID takes precedence if both are sent.

[List Issues](/api/public/support#list-issues) returns paginated state, including delegated issues. Filter by trip ID and match the issue ID; there is no single-issue GET endpoint. `resolved=false` lists open issues.

Ordinary issues support [picking](/api/public/support#pick-issue), [appending text](/api/public/support#append-message), and [resolution](/api/public/support#resolve-issue). A description or appended message is limited to 256 characters. Delegated issues skip picking and require an offered resolution action. Repeat an identical delegated decision and explanation safely; a different decision or closure by another party causes a conflict. Submit before `resolution_deadline`. The courier reply is limited to 1024 characters, while the complete trimmed explanation is retained in `resolve_description`.
