Schemas
Trip
is_round_tripWhether this trip requires a return to the pickup location. On creation, true when any course has is_round_course set to true. This is a response field, not a root-level Create Trip request field.
rounded_at^\d{4}-\d{2}-\d{2}T\…For accounts with round-trip creation enabled, null until return completion, then the recorded return-completion time. For a batched order, this is the completion time of the shared return. Cancellation or an aborted trip does not count as return completion.
idUnique ID of this trip
stateCurrent state of this trip. Advanced states depend on account configuration.
All of the different courses at which parts of this trip should be dropped off
created_at^\d{4}-\d{2}-\d{2}T\…The exact moment at which this trip is created for the first time
assigned_at^\d{4}-\d{2}-\d{2}T\…The time this trip was assigned to its current courier
picked_up_at^\d{4}-\d{2}-\d{2}T\…The time at which the courier picked up the items from pickup location
couriertest_modeWhether or not this trip was created in test mode
batch_idCurrent batch identifier; equals id before batching and may change while the trip is in progress.
delivery_costFinal delivery cost in Tomans (IRT); null until available.
arrived_at^\d{4}-\d{2}-\d{2}T\…Serialized timestamp. Responses may use Z or +HHMM; request timestamps must include a timezone.
departed_at^\d{4}-\d{2}-\d{2}T\…Serialized timestamp. Responses may use Z or +HHMM; request timestamps must include a timezone.
Pickup
nameThe human readable name of the pickup
phone_numberThe phone number associated with the source which will be used by courier and support staffs in order to contact to pickup if necessary
addressThe human readable address of the source, preferably down to every necessary detail for a human to find the source quickly
imageA valid URL which points to an image file which should be the logo of the pickup. This image will be used in both support panel, and courier’s application, so make sure that the URL is both reachable and is configured to allow CORS requests
deadline^\d{4}-\d{2}-\d{2}T\…Expected package-ready pickup time. Must be in the future when creating or updating a trip.
Course
bill_numberAn string field left for you to store sort of a human readable bill number in it which will be used as a reference point among our support team, you and the pickup staffs
nameName of the dropp-off
phone_numberThe phone number associated with the drop-off which will be used by courier and support staffs in order to contact to them if necessary
addressThe human readable drop-off address, preferably down to every necessary detail for a human to find it quickly
requires_boxThe stored box requirement for this course. Older courses without a stored value return false. When enabled, true requires a car or a motorcycle courier with a box for the whole trip. The stored value remains visible while enforcement is disabled.
is_round_courseThe current stored return requirement for this course. It can change after creation through the Round Trip endpoint.
idThe unique identifier of this course
trip_idThe unique identifier of the trip that the course belongs to
locationThe contents of the package to be delivered to the drop-off
tracking_urlThe URL of Miare Tracking webpage which can be given to user so he/she can follow the courier in real-time
dropped_off_at^\d{4}-\d{2}-\d{2}T\…Serialized timestamp. Responses may use Z or +HHMM; request timestamps must include a timezone.
old_trip_idOriginal trip identifier before batching; the zero UUID when no batching occurred.
CourseRequest
bill_numberAn string field left for you to store sort of a human readable bill number in it which will be used as a reference point among our support team, you and the pickup staffs
nameName of the dropp-off
phone_numberThe phone number associated with the drop-off which will be used by courier and support staffs in order to contact to them if necessary
addressThe human readable drop-off address, preferably down to every necessary detail for a human to find it quickly
is_round_courseSupported only in Create Trip. Set to true to mark this course as requiring a return to the pickup location. If any course requires a return, the trip has one final return after all deliveries, without adding another course. Omission defaults to false for this course. This feature is not available to all clients: contact Miare to request enablement for your account. Until enabled, requested course returns are ignored. Add Course ignores this field, and Update Trip cannot change it; use the Round Trip endpoint to change the return requirement after creation.
delivery_code^\s*[0-9]{5}\s*$Required only when the client/source proof_of_delivery_policy is third_party. Must be exactly 5 digits. Leading/trailing whitespace is ignored before validation and storage. When accepted, this code is stored as the course PoD code and will be used later for delivery verification by the driver. For clients whose PoD policy is none or miare, this field is not required.
The contents of the package to be delivered to the drop-off
requires_boxOptional; defaults to false. When box requirements are enabled, true requires a car or a motorcycle courier with a box for the whole trip, even if only one course requires it. Existing client service-level restrictions still apply. Confirm availability with Miare: while disabled, true is accepted but stored as false and course-level box requirements are not enforced. Enabling later does not restore ignored requirements. The value cannot be edited after creation; unrelated updates preserve it.
ManifestItem
nameHuman readable name of the content which will be verified by courier
quantityNumber of these items in the package.
Area
idUnique identifier of area
nameTextual name of the area
Courier
nameName of the driver
imageA photo of the courier
location_updated_at^\d{4}-\d{2}-\d{2}T\…Serialized timestamp. Responses may use Z or +HHMM; request timestamps must include a timezone.
phone_numberFinancialAmounts
total_costComplete batch total at this revision, in Tomans. Authoritative for reconciliation.
Selected pricing components. These may not sum to total_cost because other pricing rules, discounts and rounding can contribute to the total.
FinancialChange
typeA course was marked invalid.
course_idAffected course identifier.
trip_idClient-visible trip ID, preserving the original trip ID after batching.
bill_numberBill number; may be empty, or null if package information is absent.
previous_total_costBatch total before this adjustment, in Tomans.
change_amountSigned difference current_total_cost - previous_total_cost, in Tomans.
current_total_costBatch total immediately after this adjustment, in Tomans.
occurred_atTime the course was marked invalid.
Error
codeConstant error code
detailHuman readable explanation of the error
AreaInfo
idmax_ongoing_tripsThe maximum number of concurrent trips that you can have in this area at the moment, based on your subscription.
nameongoing_tripsCount of your trips that are ongoing concurrently right now.
Polygon of area coordinates, in GeoJSON format.
IssueTimestamp
^\d{4}-\d{2}-\d{2}T\…Timestamp with UTC Z or a numeric offset without a colon, for example 2026-11-19T13:00:00+0330.
ResolutionAction
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.
SupportIssue
idIssue identifier.
trip_idClient-visible trip ID, preserving the original trip ID after batching.
problem_idReported problem identifier.
reported_at^\d{4}-\d{2}-\d{2}T\… · requiredTimestamp with UTC Z or a numeric offset without a colon, for example 2026-11-19T13:00:00+0330.
reporter_typeReporter type, for example client or miare.
resolved_at^\d{4}-\d{2}-\d{2}T\… · requiredTimestamp with UTC Z or a numeric offset without a colon, for example 2026-11-19T13:00:00+0330.
resolver_typeResolver type, or null while unresolved.
resolve_descriptionResolution description.
picked_at^\d{4}-\d{2}-\d{2}T\… · requiredTimestamp with UTC Z or a numeric offset without a colon, for example 2026-11-19T13:00:00+0330.
picker_typeSupport picker type.
stateIssue state, for example reported.
Messages attached to the issue.
descriptionPresent on delegated issues only.
resolution_actionsPresent on delegated issues only.
resolution_deadline^\d{4}-\d{2}-\d{2}T\…Present on delegated issues only.
resolution_actionNull for closure without a resolution action, including support/courier closure.
DelegatedSupportIssue
idIssue identifier.
trip_idClient-visible trip ID, preserving the original trip ID after batching.
problem_idReported problem identifier.
reported_at^\d{4}-\d{2}-\d{2}T\… · requiredTimestamp with UTC Z or a numeric offset without a colon, for example 2026-11-19T13:00:00+0330.
reporter_typeReporter type, for example client or miare.
resolved_at^\d{4}-\d{2}-\d{2}T\… · requiredTimestamp with UTC Z or a numeric offset without a colon, for example 2026-11-19T13:00:00+0330.
resolver_typeResolver type, or null while unresolved.
resolve_descriptionResolution description.
picked_at^\d{4}-\d{2}-\d{2}T\… · requiredTimestamp with UTC Z or a numeric offset without a colon, for example 2026-11-19T13:00:00+0330.
picker_typeSupport picker type.
stateIssue state, for example reported.
Messages attached to the issue.
descriptionPresent on delegated issues only.
resolution_actionsPresent on delegated issues only.
resolution_deadline^\d{4}-\d{2}-\d{2}T\… · requiredPresent on delegated issues only.
resolution_actionNull for closure without a resolution action, including support/courier closure.
SupportIssuePage
nextNext page URL, or an empty string.
previousPrevious page URL, or an empty string.
total_countResolveDelegatedIssueRequest
resolution_actioncancel_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.
resolve_descriptionOptional 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.
ResolveOwnIssueRequest
resolve_descriptionTimestamp
^\d{4}-\d{2}-\d{2}T\…Serialized timestamp. Responses may use Z or +HHMM; request timestamps must include a timezone.
NullableTimestamp
^\d{4}-\d{2}-\d{2}T\…Serialized timestamp. Responses may use Z or +HHMM; request timestamps must include a timezone.
PickupRequest
nameThe human readable name of the pickup
phone_numberThe phone number associated with the source which will be used by courier and support staffs in order to contact to pickup if necessary
addressThe human readable address of the source, preferably down to every necessary detail for a human to find the source quickly
imageA valid URL which points to an image file which should be the logo of the pickup. This image will be used in both support panel, and courier’s application, so make sure that the URL is both reachable and is configured to allow CORS requests
deadline^\d{4}-\d{2}-\d{2}T\… · requiredExpected package-ready pickup time. Must be in the future when creating or updating a trip.
seller_idRequired for proxy invoicing: register this client-scoped seller before creating the trip.
Payment
priceDeclared package value in Tomans (IRT), separate from delivery cost. Checked per course; equality with the effective client limit is allowed. A value over the limit rejects the whole trip or new course.
payment_typePayment method; currently cash.
AddCourseRequest
bill_numberAn string field left for you to store sort of a human readable bill number in it which will be used as a reference point among our support team, you and the pickup staffs
nameName of the dropp-off
phone_numberThe phone number associated with the drop-off which will be used by courier and support staffs in order to contact to them if necessary
addressThe human readable drop-off address, preferably down to every necessary detail for a human to find it quickly
delivery_code^\s*[0-9]{5}\s*$Required only when the client/source proof_of_delivery_policy is third_party. Must be exactly 5 digits. Leading/trailing whitespace is ignored before validation and storage. When accepted, this code is stored as the course PoD code and will be used later for delivery verification by the driver. For clients whose PoD policy is none or miare, this field is not required.
The contents of the package to be delivered to the drop-off
requires_boxOptional; defaults to false. When box requirements are enabled, true requires a car or a motorcycle courier with a box for the whole trip, even if only one course requires it. Existing client service-level restrictions still apply. Confirm availability with Miare: while disabled, true is accepted but stored as false and course-level box requirements are not enforced. Enabling later does not restore ignored requirements. The value cannot be edited after creation; unrelated updates preserve it.
BoostRequest
levelA current boost level, or 0 to cancel. Fetch valid levels periodically.
Boost
levelActive boost level; 0 means no boost.
amountPrice increase in Tomans (IRT).
CreateBoostRequest
levelA current boost level, or 0 to cancel. Fetch valid levels periodically.
UpdateCourseRequest
bill_numberAn string field left for you to store sort of a human readable bill number in it which will be used as a reference point among our support team, you and the pickup staffs
nameName of the dropp-off
phone_numberThe phone number associated with the drop-off which will be used by courier and support staffs in order to contact to them if necessary
addressThe human readable drop-off address, preferably down to every necessary detail for a human to find it quickly
The contents of the package to be delivered to the drop-off
RoundTripRequest
is_round_tripRequire or remove one final return to the pickup location.
BoostLevel
levelamountPrice increase in Tomans (IRT).
TripPage
nextNext page URL, or null.
previousPrevious page URL, or null.
total_countProblem
idtitledescription_requiredreporter_typeProblem 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.
ReportIssueRequest
problem_idUse a problem for the client reporter type.
trip_idProvide trip_id or course_id. trip_id takes precedence when both are supplied.
course_iddescriptionRequired when the selected problem requires a description.
Decision Table
| Variant | Matching Criteria |
|---|---|
| requires: trip_id | |
| requires: course_id |
trip_idAppendMessageRequest
messageText to append to an unresolved issue.
Estimate
priceEstimated course delivery cost, in Tomans. Excludes trip-level costs and boost.
statusarea_coverageSellerRequest
person_typeaddressnamenational_idRequired for an individual. A legal seller needs national_id or economic_id.
registration_numbereconomic_idA legal seller needs national_id or economic_id.
postal_codephone_numberSeller
person_typenamenational_idRequired for an individual. A legal seller needs national_id or economic_id.
registration_numbereconomic_idA legal seller needs national_id or economic_id.
addresspostal_codephone_numberseller_idcreated_at^\d{4}-\d{2}-\d{2}T\… · requiredSerialized timestamp. Responses may use Z or +HHMM; request timestamps must include a timezone.
updated_at^\d{4}-\d{2}-\d{2}T\… · requiredSerialized timestamp. Responses may use Z or +HHMM; request timestamps must include a timezone.
InvoiceReady
statusbatch_idrevisionrevisions_countHighest available revision number; not the number of revisions.
invoice_numberAdjustments append -RNN to the original invoice number.
document_typedownload_urlTemporary private download URL; expires in five minutes.
expires_at^\d{4}-\d{2}-\d{2}T\… · requiredSerialized timestamp. Responses may use Z or +HHMM; request timestamps must include a timezone.
InvoiceProcessing
statusbatch_idrevisionrevisions_countHighest available revision number; not the number of revisions.
retry_afterSeconds to wait before polling again.
FinancialDetail
batch_idStable accounting batch identifier across revisions; may differ from original trip IDs.
revisionPer-batch revision: 0 initially; increasing positive values for adjustments.
trip_idsUnique original client-visible trip IDs, retained after batching.
course_idsCourses associated with this calculation; adjustments include invalidated courses for traceability.
bill_numbersUnique non-empty bill numbers, not positionally aligned with trip_ids or course_ids.
stateFinancial state, separate from trip lifecycle state.
Cumulative adjustment history; empty for the initial calculation.
Decision Table
| Variant | Matching Criteria |
|---|---|
| No specific criteria | |
| No specific criteria |
staterevisionchangesUpdatePickupRequest
nameThe human readable name of the pickup
phone_numberThe phone number associated with the source which will be used by courier and support staffs in order to contact to pickup if necessary
addressThe human readable address of the source, preferably down to every necessary detail for a human to find the source quickly
imageA valid URL which points to an image file which should be the logo of the pickup. This image will be used in both support panel, and courier’s application, so make sure that the URL is both reachable and is configured to allow CORS requests
deadline^\d{4}-\d{2}-\d{2}T\… · requiredExpected package-ready pickup time. Must be in the future when creating or updating a trip.