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

# \_listByIds

Get a list of codes and names for specified stock

### Parameters

#### ids

Array of integers. Each value should be the ID of a requested Stock item

### Example

```
FM_api('Stock_listByIds',
	[
		'ids'=>['7', '4']
	]
);
```

### Example Result

```
[{"id":"4","name":"34W Fan Motor","code":"n\/a"},{"id":"7","name":"2kg 1.75mm PLA Filament","code":"PLA001"}]
```

The returned object is an array of Stock items
