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

# \_getCategories

Retrieve a detailed list of all Account Categories

### Example

```
FM_api('Accounts_getCategories');
```

### Result

#### On Success

Returns id, name, tax rate, category group id and category group name of all Account Categories.

```
[{"id":"1","name":"Stock","tax_rate":"10","category_group_id":"1","groupname":"Current Assets"},{"id":"3","name":"Allowance for bad debts","tax_rate":"0","category_group_id":"1","groupname":"Current Assets"}]
```
