> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/purchaseorder/_new.md).

# \_new

Creates a new purchase order

### Parameters

#### supplier\_id

ID of the supplier for the purchase order.

#### reference

A reference for the purchase order.

### Example

```
FM_api('PurchaseOrder_new', ['supplier_id' => '4', 'reference' => 'TEST REF'])
```

### On Success

```
"{"ok":1,"id":12}"
```
