Get a purchase order
get_purchase_orderOne purchase order in full: every line with the quantity ordered, received and billed (qty_to_receive is what is still expected), the receipts recorded, the vendor bills raised from it, and actions. The line ids here are what receive_purchase_order takes.
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": {
"purchase_order_id": "<purchase_order_id>"
},
"name": "get_purchase_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | No | Another entity in the same books (ids from `list_entities`). Leave out to use the entity the person is working in. | |
| purchase_order_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Why the result was truncated, when it was. | |
| truncated | No | Present and true when the result was too large to return in full. Treat it as a partial answer. | |
| total_available | No | How many rows existed before truncation. |