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

# \_get

Get Stock Category record data.

### Parameters

#### id

The ID of the Stock Category to get.

### Example

```
FM_api('StockCategory_get', ['id' => '1']);
```

### Result

#### On Success

```
{"id":"1","name":"Door","parent_id":"0","stock":"1","last_edited":"2018-09-19 12:00:29"}
```

#### On Failure

If the Stock Category does not exist, then the result will be: {"false"}
