> 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/_setreference.md).

# \_setReference

Set the Reference for a Purchase order.

### Parameteres

\###id ID of the purchase order which will have the reference set.

#### reference

The reference to be set for the purchase order.

### Example

```
FM_api('PurchaseOrder_setReference', ['id' => '10', 'reference' => '18'])
```

### Result

#### On Success

```
{"ok":1}
```
