Miare
Miare API

Support

Report and resolve issues, including delegated courier issues.


List Problems

GET
https://ws.miare.ir
/support/third-party-api/v2/problems/

Returns list of Miare problems. Each issue is categorized based on its problem. API clients should store a mapping of Miare's problems and theirs.

The response is an array of all the problems you may face in your webhook calls. The details about properties of each object is as follows:

Errors

CodeDescription
not_authenticatedToken is missing or invalid

List Problems › Responses

Successful response.

​object[]
id
​string · uuid · required
title
​string · required
description_required
​boolean · required
reporter_type
​string · enum · required

Problem reporter category. Only client problems can be reported by API clients. The older prose called this for_reporter_type; the wire field is reporter_type.

Enum values:
client
miare

List Issues

GET
https://ws.miare.ir
/support/third-party-api/v2/issues/

Returns issues of your trips matching the given conditions, including courier-reported issues delegated to your account.

To retrieve a reported issue, filter by its trip ID and match id in the results. There is no single-issue GET endpoint. Use resolved=false to list only open issues.

Server might not have or decide not to send you as many result items as limit but it never sends you more than that.

Errors

CodeDescription
not_authenticatedToken is missing or invalid

List Issues › query Parameters

reporter_type
​string

Filter: The value of the user type that has reported the issue

picker_type
​string

Filter: The value of the user type that has picked the issue

reported_from_datetime
​string · pattern: ^\d{4}-\d{2}-\d{2}T\…

Filter: Minimum acceptable value for issue's reported_at field. This filter is inclusive

Serialized timestamp. Responses may use Z or +HHMM; request timestamps must include a timezone.

reported_to_datetime
​string · pattern: ^\d{4}-\d{2}-\d{2}T\…

Filter: Maximum acceptable value for issue's reported_at field. This filter is inclusive

Serialized timestamp. Responses may use Z or +HHMM; request timestamps must include a timezone.

resolved
​boolean

Filter: The value of issues's resolved_at comparing to null

state
​string

Filter: The value of issues's state. Acceptable values of state are available here

picked
​boolean

Filter: The value of issues's picked_at comparing to null

trip_id
​string

Filter: The UUID of the trip that the issue is reported for (one trip per request)

offset
​integer · min: 0

Give results excluding the first offset number of objects

limit
​integer · min: 0

Give at most limit number of results. The default value is 100

Default: 100

List Issues › Responses

Successful response.

​null | array · required
next
​string · required

Next page URL, or an empty string.

previous
​string · required

Previous page URL, or an empty string.

total_count
​integer · min: 0 · required

Report Issue

POST
https://ws.miare.ir
/support/third-party-api/v2/issues/

Creates an issue with given data.

note: both trip_id and course_id can NOT be null at the same time. if both are provided, trip_id will be considered and course_id will be ignored.

The success response is the serialized created issue. The details about properties of each object is as follows:

Errors

CodeDescription
not_authenticatedToken is missing or invalid
trip_not_ongoingThe trip is not in a situation to be able to accept new issues. Currently the trips requested before 3 hours from now are considered as not ongoing
forbidden_problemThe relative problem of problem_id is not for_reporter_type of client
description_requiredThe relative problem of problem_id is forcing description field on it's issues
long_descriptionThe description value of the request is longer than the defined limit

Report Issue › Request Body

problem_id
​string · uuid · required

Use a problem for the client reporter type.

trip_id
​null | string · uuid

Provide trip_id or course_id. trip_id takes precedence when both are supplied.

course_id
​null | string · uuid
description
​null | string · maxLength: 256

Required when the selected problem requires a description.

anyOf
At least one variant must match. Multiple variants may match simultaneously.

Decision Table

VariantMatching Criteria
requires: trip_id
requires: course_id
Properties for Variant 1:
trip_id
​string · uuid · required

Report Issue › Responses

Successful response.

Issue returned by the support API. Delegated issues additionally include description, resolution_actions, resolution_deadline and resolution_action. The action is null while unresolved or after manual support/courier closure. Reporter/resolver miare includes couriers and support.
id
​string · uuid · required

Issue identifier.

trip_id
​string · uuid · required

Client-visible trip ID, preserving the original trip ID after batching.

problem_id
​string · uuid · required

Reported problem identifier.

reported_at
​string · pattern: ^\d{4}-\d{2}-\d{2}T\… · required

Timestamp with UTC Z or a numeric offset without a colon, for example 2026-11-19T13:00:00+0330.

reporter_type
​string · enum · required

Reporter type, for example client or miare.

Enum values:
client
miare
resolved_at
​null | string · pattern: ^\d{4}-\d{2}-\d{2}T\… · required

Timestamp with UTC Z or a numeric offset without a colon, for example 2026-11-19T13:00:00+0330.

resolver_type
​null | string · enum · required

Resolver type, or null while unresolved.

Enum values:
client
miare
resolve_description
​null | string · required

Resolution description.

picked_at
​null | string · pattern: ^\d{4}-\d{2}-\d{2}T\… · required

Timestamp with UTC Z or a numeric offset without a colon, for example 2026-11-19T13:00:00+0330.

picker_type
​null | string · enum · required

Support picker type.

Enum values:
client
miare
state
​string · enum · required

Issue state, for example reported.

Enum values:
reported
picked
resolved
​object[] · required

Messages attached to the issue.

description
​null | string

Present on delegated issues only.

resolution_actions
​string[] · minItems: 1

Present on delegated issues only.

Enum values:
cancel_trip
reject_issue
resolution_deadline
​string · pattern: ^\d{4}-\d{2}-\d{2}T\…

Present on delegated issues only.

resolution_action
​null | string · enum

Null for closure without a resolution action, including support/courier closure.

Enum values:
cancel_trip
reject_issue

Resolve Issue

PATCH
https://ws.miare.ir
/support/third-party-api/v2/issues/{issue_id}/resolve/

Resolve an issue delegated to your account by choosing one of its offered actions. The action runs synchronously; HTTP 200 returns the updated Issue object.

For ordinary, non-delegated issues, omit resolution_action; the existing rule that clients can resolve only their own reports still applies.

Repeating the same action and explanation succeeds without applying the action again. A different decision, or an issue already closed by support, the courier or automatic handling, returns a conflict. Submit new commands before resolution_deadline.

The courier conversation reply is limited to 1024 characters. The full trimmed explanation remains available in resolve_description.

The complete response schema is the Issue object. Completion is also sent as trip_issue_resolved.

Errors contain code and detail properties.

Errors

HTTP statusCodeDescription
401not_authenticatedToken is missing or invalid.
403not_ownerThe issue belongs to another client, or an ordinary issue was not reported by you.
403delegated_issue_requires_resolution_actionA delegated issue was submitted without resolution_action.
404issue_not_foundNo issue exists for the supplied UUID.
400invalid_resolution_actionUnknown action key or action not offered for this issue.
409issue_not_delegatedA resolution action was submitted for an ordinary issue.
409delegation_deadline_expiredA new client decision arrived after its deadline.
409resolution_conflictThe issue has already been resolved with a different decision or by another party.
403already_resolvedAn ordinary issue has already been resolved.

cancel_trip can also return errors from Cancel Trip, such as a trip that can no longer be canceled. A failed action leaves the issue unresolved.

Resolve Issue › path Parameters

issue_id
​string · uuid · required

The issue id belonging to the authenticated client.

Resolve Issue › Request Body

oneOf
Exactly one variant must match.

Decision Table

VariantMatching Criteria
type = object · requires: resolution_action
type = object
Properties for Variant 1:
resolution_action
​string · enum · required

cancel_trip accepts the report and cancels the affected trip using existing cancellation/accounting rules; no replacement trip is created. reject_issue closes the issue and notifies the courier without changing trip progress. Only actions offered for the issue may be submitted.

Enum values:
cancel_trip
reject_issue
resolve_description
​null | string

Optional for both actions, including reject_issue. Omitted/null/blank values are accepted. Supplied strings are trimmed; rejection uses generic notification text when no explanation is provided.

Resolve Issue › Responses

Successful response.

Issue returned by the support API. Delegated issues additionally include description, resolution_actions, resolution_deadline and resolution_action. The action is null while unresolved or after manual support/courier closure. Reporter/resolver miare includes couriers and support.
id
​string · uuid · required

Issue identifier.

trip_id
​string · uuid · required

Client-visible trip ID, preserving the original trip ID after batching.

problem_id
​string · uuid · required

Reported problem identifier.

reported_at
​string · pattern: ^\d{4}-\d{2}-\d{2}T\… · required

Timestamp with UTC Z or a numeric offset without a colon, for example 2026-11-19T13:00:00+0330.

reporter_type
​string · enum · required

Reporter type, for example client or miare.

Enum values:
client
miare
resolved_at
​null | string · pattern: ^\d{4}-\d{2}-\d{2}T\… · required

Timestamp with UTC Z or a numeric offset without a colon, for example 2026-11-19T13:00:00+0330.

resolver_type
​null | string · enum · required

Resolver type, or null while unresolved.

Enum values:
client
miare
resolve_description
​null | string · required

Resolution description.

picked_at
​null | string · pattern: ^\d{4}-\d{2}-\d{2}T\… · required

Timestamp with UTC Z or a numeric offset without a colon, for example 2026-11-19T13:00:00+0330.

picker_type
​null | string · enum · required

Support picker type.

Enum values:
client
miare
state
​string · enum · required

Issue state, for example reported.

Enum values:
reported
picked
resolved
​object[] · required

Messages attached to the issue.

description
​null | string

Present on delegated issues only.

resolution_actions
​string[] · minItems: 1

Present on delegated issues only.

Enum values:
cancel_trip
reject_issue
resolution_deadline
​string · pattern: ^\d{4}-\d{2}-\d{2}T\…

Present on delegated issues only.

resolution_action
​null | string · enum

Null for closure without a resolution action, including support/courier closure.

Enum values:
cancel_trip
reject_issue

Pick Issue

PATCH
https://ws.miare.ir
/support/third-party-api/v2/issues/{issue_id}/pick/

Picks an issue that means the issue is being checked by the client. Delegated issues do not use this endpoint; submit a resolution action directly.

The success response is the serialized updated issue. For a detailed version of it take a look at the response body of Report Issue request.

Errors

CodeDescription
not_authenticatedToken is missing or invalid
already_resolvedThe issue is already resolved
already_pickedThe issue is already picked
issue_delegated_to_clientUse the resolve endpoint with a resolution action for a delegated issue.

Pick Issue › path Parameters

issue_id
​string · uuid · required

The issue id belonging to the authenticated client.

Pick Issue › Responses

Successful response.

Issue returned by the support API. Delegated issues additionally include description, resolution_actions, resolution_deadline and resolution_action. The action is null while unresolved or after manual support/courier closure. Reporter/resolver miare includes couriers and support.
id
​string · uuid · required

Issue identifier.

trip_id
​string · uuid · required

Client-visible trip ID, preserving the original trip ID after batching.

problem_id
​string · uuid · required

Reported problem identifier.

reported_at
​string · pattern: ^\d{4}-\d{2}-\d{2}T\… · required

Timestamp with UTC Z or a numeric offset without a colon, for example 2026-11-19T13:00:00+0330.

reporter_type
​string · enum · required

Reporter type, for example client or miare.

Enum values:
client
miare
resolved_at
​null | string · pattern: ^\d{4}-\d{2}-\d{2}T\… · required

Timestamp with UTC Z or a numeric offset without a colon, for example 2026-11-19T13:00:00+0330.

resolver_type
​null | string · enum · required

Resolver type, or null while unresolved.

Enum values:
client
miare
resolve_description
​null | string · required

Resolution description.

picked_at
​null | string · pattern: ^\d{4}-\d{2}-\d{2}T\… · required

Timestamp with UTC Z or a numeric offset without a colon, for example 2026-11-19T13:00:00+0330.

picker_type
​null | string · enum · required

Support picker type.

Enum values:
client
miare
state
​string · enum · required

Issue state, for example reported.

Enum values:
reported
picked
resolved
​object[] · required

Messages attached to the issue.

description
​null | string

Present on delegated issues only.

resolution_actions
​string[] · minItems: 1

Present on delegated issues only.

Enum values:
cancel_trip
reject_issue
resolution_deadline
​string · pattern: ^\d{4}-\d{2}-\d{2}T\…

Present on delegated issues only.

resolution_action
​null | string · enum

Null for closure without a resolution action, including support/courier closure.

Enum values:
cancel_trip
reject_issue

Append Message

PATCH
https://ws.miare.ir
/support/third-party-api/v2/issues/{issue_id}/messages/

Appends a new message to an unresolved issue.

Currently only messages with text type are supported.

The success response is the serialized created issue. For a detailed version of it take a look at the response body of Report Issue request.

Errors

CodeDescription
not_authenticatedToken is missing or invalid
already_resolvedThe issue is already resolved
long_messageThe message value of the request is longer than the defined limit

Append Message › path Parameters

issue_id
​string · uuid · required

The issue id belonging to the authenticated client.

Append Message › Request Body

message
​string · maxLength: 256 · required

Text to append to an unresolved issue.

Append Message › Responses

Successful response.

Issue returned by the support API. Delegated issues additionally include description, resolution_actions, resolution_deadline and resolution_action. The action is null while unresolved or after manual support/courier closure. Reporter/resolver miare includes couriers and support.
id
​string · uuid · required

Issue identifier.

trip_id
​string · uuid · required

Client-visible trip ID, preserving the original trip ID after batching.

problem_id
​string · uuid · required

Reported problem identifier.

reported_at
​string · pattern: ^\d{4}-\d{2}-\d{2}T\… · required

Timestamp with UTC Z or a numeric offset without a colon, for example 2026-11-19T13:00:00+0330.

reporter_type
​string · enum · required

Reporter type, for example client or miare.

Enum values:
client
miare
resolved_at
​null | string · pattern: ^\d{4}-\d{2}-\d{2}T\… · required

Timestamp with UTC Z or a numeric offset without a colon, for example 2026-11-19T13:00:00+0330.

resolver_type
​null | string · enum · required

Resolver type, or null while unresolved.

Enum values:
client
miare
resolve_description
​null | string · required

Resolution description.

picked_at
​null | string · pattern: ^\d{4}-\d{2}-\d{2}T\… · required

Timestamp with UTC Z or a numeric offset without a colon, for example 2026-11-19T13:00:00+0330.

picker_type
​null | string · enum · required

Support picker type.

Enum values:
client
miare
state
​string · enum · required

Issue state, for example reported.

Enum values:
reported
picked
resolved
​object[] · required

Messages attached to the issue.

description
​null | string

Present on delegated issues only.

resolution_actions
​string[] · minItems: 1

Present on delegated issues only.

Enum values:
cancel_trip
reject_issue
resolution_deadline
​string · pattern: ^\d{4}-\d{2}-\d{2}T\…

Present on delegated issues only.

resolution_action
​null | string · enum

Null for closure without a resolution action, including support/courier closure.

Enum values:
cancel_trip
reject_issue