# POST /inventory/purchase-orders

**Resource:** [INVENTORY](./inventory.md)  
**MCP tool:** `create_purchase_order`  
**Scopes:** `purchase_orders:write`  
**Write operation:** yes

Raise a purchase order to a supplier for products and quantities. It starts as a draft numbered PO-0001, PO-0002 and so on. Mark it sent with update_purchase_order once it has gone to the supplier, and record the delivery with receive_purchase_order, which puts the stock on the shelf.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `supplier_id` | body | string | no | The supplier, a company in the CRM (UUID). Send this or supplier_name. |
| `supplier_name` | body | string | no | The supplier's name, when it is not a company in the CRM. Filled from the company when supplier_id is sent. |
| `location_id` | body | string | no | Where the delivery goes. Defaults to the workspace's default stock location when received. |
| `expected_date` | body | string | no | When the delivery is expected (YYYY-MM-DD). |
| `reference` | body | string | no | The supplier's quote or order reference. |
| `notes` | body | string | no | Notes for the team. |
| `currency` | body | string | no | Currency of the costs. Defaults to AUD. |
| `opportunity_id` | body | string | no | The job this order buys for: an opportunity (UUID, from list_opportunities). Its lines then count as actual cost in the job costing of that opportunity (get_job_costing). |
| `work_order_id` | body | string | no | The work order this order buys for (UUID). Its opportunity becomes the job when opportunity_id is not sent. |
| `lines` | body | array | no | The products and quantities to order. Can be added later with add_purchase_order_line. |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/inventory/purchase-orders"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"supplier_id":"...","supplier_name":"...","location_id":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`