alopeyk_get_price
Calculates delivery price between stops for various transport types, including motorbike, car, or cargo. Returns price, distance, duration, and credit without placing an order.
Instructions
Calculate the price for a delivery between stops (read-only).
Persian purpose: محاسبه قیمت یک سفارش. On-Demand, requires an
access_token. This does NOT create an order. Maps to
POST /api/v2/orders/price/calc. The response includes status,
price, credit, distance, duration, user_credit, and
price_with_return.
Args:
transport_type: Vehicle class (e.g. motorbike, motor_taxi, cargo,
cargo_s, car). See alopeyk_transport_types.
addresses: Ordered stops, each {type, lat, lng} — one
type="origin" followed by one or more
type="destination".
has_return: Whether the courier returns to the origin (default
false).
cashed: Whether the delivery is cash-on-delivery (default false).
optimize: Whether to optimize the multi-stop route (default false).
instance: Configured instance to use (default when omitted).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| transport_type | Yes | ||
| addresses | Yes | ||
| has_return | No | ||
| cashed | No | ||
| optimize | No | ||
| instance | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||