Record goods received
receive_purchase_orderRecord goods arriving against an open purchase order — per line with lines (ids from get_purchase_order), or everything still outstanding with all: true. Stocked items go into inventory at the order's cost. Usually queued for the account holder to approve (read staged). It records a receipt; it does not create or pay the vendor's bill.
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": "receive_purchase_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Receive everything still outstanding instead of naming lines. | |
| note | No | ||
| lines | No | ||
| entity_id | No | Another entity in the same books (ids from `list_entities`). Leave out to use the entity the person is working in. | |
| reference | No | Packing slip or delivery reference. | |
| received_on | No | ISO date it arrived. Default today. | |
| purchase_order_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The created or updated record's id, when the write was applied rather than staged. | |
| note | No | Why the result was truncated, when it was. | |
| staged | No | TRUE means nothing has changed yet — the write is queued in the account holder's Approvals queue in Seayora. Say it is waiting for approval; never report it as done. | |
| draft_id | No | The staged proposal's id, when it was queued rather than performed. | |
| 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. |