create_purchase_order
Create a supplier purchase order with product line items, quantities, and prices in rubles. Specify organization and counterparty, optionally add warehouse.
Instructions
Create a purchase order (заказ поставщику). Prices in RUBLES.
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": {
"organization_href": "<organization_href>",
"agent_href": "<agent_href>",
"positions": "<positions>"
},
"name": "create_purchase_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| positions | Yes | Document line items | |
| agent_href | Yes | Meta href of the counterparty. Get from get_counterparties | |
| store_href | No | Meta href of the receiving warehouse (optional) | |
| description | No | Comment | |
| organization_href | Yes | Meta href of the organization. Get from list_organizations |