Get Order By Id
get_order_by_idReturns one order of the current company by its orderId, in the same shape as the orders from get_current_active_orders and get_current_scheduled_orders. It finds orders that are currently active or scheduled. An order that is already delivered or failed, or does not exist for this company, returns an error. Use it to fetch the latest state of one order before editing it: the order contains every field that edit_order uses, under the same names, so send it to edit_order with only the requested changes applied.
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": {
"orderId": "<orderId>"
},
"name": "get_order_by_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderId | Yes | Id of the order, the orderId field of an order |