# \_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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fieldmotion.com/fieldmotion-api-docs/stock/_listbyids.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
