Accounting
Estimates, seller registration, invoices and financial reconciliation.
Estimate Price
Estimates the delivery cost of the course based on the distance between the given source and destination.
The output price is not accurate; it might be affected by the applied conditions at the request time.
The output price is only the course's cost. The final cost includes a trip cost as well. For more information contant the sales team.
This estimate does not include Boost. Include the amount of the selected boost
level when calculating the total delivery cost, together with the other trip-level costs described above.
Errors
| Code | Description |
|---|---|
| not_authenticated | Token is missing or invalid |
| invalid | The given query params are not valid |
query Parameters
sourceLatitude and Longitude of the source of the course. The order matters
destinationLatitude and Longitude of the destination of the course. The order matters
Estimate Price › Responses
Successful response.
priceEstimated course delivery cost, in Tomans. Excludes trip-level costs and boost.
statusarea_coverageRegister or Update Seller
Registers the legal identity of a seller for proxy invoicing, or updates an existing seller
with the same seller_id. Seller identifiers are unique within the authenticated client.
This endpoint is available only for clients with proxy invoicing enabled. Register the seller
before using its ID as pickup.seller_id in the
Create Trip request.
Both creation and update return HTTP 201. When updating, omitted optional fields keep their
existing values; sending an optional field as null clears it when validation permits.
Errors
| Code | Description |
|---|---|
| not_authenticated | Token is missing or invalid |
| invalid_request_body | Request body or seller legal data is invalid |
| not_found | Proxy invoicing is not enabled for the authenticated client |
path Parameters
seller_idThe seller id belonging to the authenticated client.
Register or Update Seller › Request Body
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_numberRegister or Update Seller › Responses
Successful response.
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.
Get Trip Invoice
Returns the latest available proxy-invoice revision for a batch, or a specific revision when
requested. The original invoice is revision 0; later adjustments use increasing revision numbers.
This endpoint is available only for clients with proxy invoicing enabled. The batch_id
must belong to the authenticated client. Omit revision to request the latest revision.
The endpoint is read-only. While an invoice is being generated, poll again after the number of
seconds returned in retry_after or the Retry-After response header.
Errors
| HTTP status | Description |
|---|---|
| 400 | revision is not a non-negative integer |
| 401 | Token is missing or invalid |
| 404 | Proxy invoicing is disabled, or the batch is unknown or belongs to another client |
| 409 | The batch belongs to the client, but no invoice exists or the requested revision is unavailable |
| 503 | Invoice generation reached a terminal failure |
path Parameters
batch_idThe batch id belonging to the authenticated client.
query Parameters
revisionNon-negative revision number. Use 0 for the original; omit it for the latest.
Get Trip Invoice › Responses
Successful response.
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.
Get Financial Detail
Recover the latest financial snapshot for a batch with your API token. Available only for enabled accounts. This returns the financial webhook fields without event. Use the complete financials.total_cost as authoritative; changes is cumulative and must not be added again. Invoice PDF availability is independent.
path Parameters
batch_idGet Financial Detail › Responses
Successful response.
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 |
staterevisionchanges