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

# \_setSupplier

Set the supplier for a Purchase order.

### Parameteres

\###id ID of the Purchase order which will have the supplier set.

#### supplier\_id

The ID of the supplier to be set for the Puschase order..

### Example

```
FM_api('PurchaseOrder_setSupplier', ['id' => '10', 'supplier_id' => '7'])
```

### Result

#### On Success

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