Logistics: Update freight order
logistics_update_freight_orderEdit a freight order. Send ONLY the fields you are changing — the server reads the order first and merges your changes onto it, so untouched fields keep their values. 'status' moves the order (New → Assigned → InProgress → Completed, or Cancelled); cancelling REQUIRES 'cancellation_reason', and Completed requires the order to have actual delivered tonnage recorded on its trips. Requires confirmation. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"freight_order_id": "<freight_order_id>"
},
"name": "logistics_update_freight_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| status | No | One of: New, Assigned, InProgress, Completed, Cancelled. | |
| cargo_id | No | ||
| customer | No | ||
| end_house | No | ||
| end_phone | No | ||
| end_place | No | ||
| load_date | No | ISO date (YYYY-MM-DD) or datetime. | |
| load_type | No | Vehicle body type. Prefer a code from the company's «Тип машини» book (Grain, Dump, Tent, Reefer, Flatbed, Container, Tanker) — loss-norm resolution matches this against the norm's transportType. | |
| plan_tons | No | ||
| end_region | No | ||
| end_street | No | ||
| load_point | No | ||
| order_date | No | ISO date (YYYY-MM-DD) or datetime. | |
| distance_km | No | ||
| end_contact | No | ||
| end_country | No | ||
| start_house | No | ||
| start_phone | No | ||
| start_place | No | ||
| unload_date | No | ISO date (YYYY-MM-DD) or datetime. | |
| end_district | No | ||
| end_latitude | No | ||
| end_locality | No | ||
| loss_percent | No | ||
| rate_per_ton | No | ||
| start_region | No | ||
| start_street | No | ||
| unload_point | No | ||
| end_longitude | No | ||
| start_contact | No | ||
| start_country | No | ||
| start_district | No | ||
| start_latitude | No | ||
| start_locality | No | ||
| vehicles_count | No | ||
| freight_rate_id | No | ||
| start_longitude | No | ||
| freight_order_id | Yes | ||
| cancellation_reason | No | ||
| customer_rate_per_ton | No | ||
| estimated_cost_per_ton | No | ||
| customer_organization_id | No |