Create purchase order
create_purchase_orderCreates a draft purchase order with supplier, line items, and optional project so you can prepare orders without notifying the vendor.
Instructions
Creates a draft purchase order to a supplier with line items, optionally for a project.
Creates a Contractor Foreman purchase order in Draft status, ordered by the signed-in user: subject, supplier, project, order date, notes and line items (description, quantity, unit, unit cost, cost type). The supplier is not notified. Sending the PO stays a step in the app. Returns the saved order.
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": {
"subject": "<subject>",
"vendor_id": "<vendor_id>",
"items": "<items>"
},
"name": "create_purchase_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Line items. The total is the sum of quantity times unit cost. | |
| notes | No | ||
| subject | Yes | ||
| vendor_id | Yes | The supplier's contact_id (list_contacts type vendor). | |
| order_date | No | YYYY-MM-DD. Default: today. | |
| project_id | No | The project the order is for. |