# merchants.list

List the merchants the organization paid, with what Oatmilk knows about each (description, industry, website, kind), spend per currency net of refunds over the last 12 months or from/to dates, last paid date, category with its source (rule, history or confirmed) and whether it needs a look. Names written differently, such as "Slack Technologies, LLC" and "SLACK.COM", are one merchant. Filter with search or filter=needs_look. Finance access required.

`GET | POST /api/v1/accounting/merchants.list`

Permissions: `accounting:read` · Roles: admin, finance

MCP tool: `accounting_merchants_list`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `search` | string |  | Text to search for. at most 200 characters. |
| `filter` | enum |  | One of: `all`, `needs_look`. Default `"all"`. |
| `sort` | enum |  | One of: `spend`, `name`, `recent`. Default `"spend"`. |
| `from` | string |  | The first date to include, as YYYY-MM-DD. Date as YYYY-MM-DD. |
| `to` | string |  | The last date to include, as YYYY-MM-DD. Date as YYYY-MM-DD. |
| `limit` | integer |  | How many results to return at most. 1 to 200. Default `50`. |
| `offset` | integer |  | How many results to skip, for the next page of a list. 0 to 100000. Default `0`. |

## Example request

```bash
curl https://app.getoatmilk.com/api/v1/accounting/merchants.list \
  -H "Authorization: Bearer $OATMILK_API_KEY"
```

Reference page: https://app.getoatmilk.com/docs/api/merchants.list
