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

# \_getBySupplierId

Retrieve Purchase orders by Supplier ID

### Parameters

#### id

The Supplier ID you wish to retrieve purchase orders for.

### Example

```
FM_api('PurchaseOrders_getBySupplierId', ['id' => '4'])
```

### Result

#### On Success

```
[{"id":"4","reference":"24"},{"id":"11","reference":"5"},{"id":"12","reference":"pipes order"},{"id":"13","reference":"Hardware"},{"id":"14","reference":"Doors"}]
```
