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.
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. |