---
title: "Search Expense Categories"
method: GET
path: "/business/v2/entities/expense-category"
tags: ["Accounting Classification"]
---

# Search Expense Categories

`GET /business/v2/entities/expense-category`

## Request

- Base URL: `https://api.soldo.com`
- URL: `https://api.soldo.com/business/v2/entities/expense-category`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://api.soldo.com/oauth/authorize` scopes: `expense_category_read`
- TypeScript: <https://skmtc.dev/soldo/apis/soldo-business-api-v2-0/docs/business/v2/entities/expense-category/get.ts> (a function with typed inputs; its response is checked against the schema)

Endpoint to find `ExpenseCategories` using filtering parameters.

## Query parameters

- `text` string: A simple text to search in the `ExpenseCategory` (`name` or `code`).
- `enabled` boolean: It determines if `ExpenseCategory` is enabled.
- `p` integer: It indicates the specific page to display (the counter starts from zero).
- `s` integer: It indicates the number of items per page.
- `d` 'ASC' | 'DESC': It indicates how the pages are ordered.
- `props` string[]: It indicates the sorting direction applied to the above parameters. To apply a sorting on multiple parameters, set as many times the `props` parameter in the request.

## Response `200`

The result is an array containing `ExpenseCategories`.

- ExpenseCategories
  - `total` integer: It represents the total number of available items in the list.
  - `pages` integer: It represents the total number of available pages.
  - `page_size` integer: It represents the number of items per page.
  - `current_page` integer: It indicates the current page (the counter starts from zero).
  - `results_size` integer: It indicates the size of the array results.
  - `results` ExpenseCategory[]
    - `id` string: The `ExpenseCategory` ID.
    - `code` string: The code of the `ExpenseCategory`.
    - `name` string: The name of the `ExpenseCategory`.
    - `description` string: A custom description of the `ExpenseCategory`.
    - `tax_rate_id` string: The ID of the VAT rate linked to the `ExpenseCategory`.
    - `enabled` boolean: The `ExpenseCategory` is visible in the transaction detail.
    - `merchant_categories` MerchantCategory[]: A list of merchant categories this `ExpenseCategory`.
    - `expense_type` string: The type of expense assigned to category.
    - `integration` string: The `ExpenseCategory`'s correlated integration.
    - `creation_time` string: The date and time when the `ExpenseCategory` was created (sortable: no).
    - `last_update_time` string: The date and time when the `ExpenseCategory` was last updated (sortable: no).

## Other responses

- `400`: Your request has missing arguments or is malformed.

---

[API](https://skmtc.dev/soldo/apis/soldo-business-api-v2-0.md) - [All operations](https://skmtc.dev/soldo/apis/soldo-business-api-v2-0/llms.txt) - [OpenAPI document](https://skmtc.dev/soldo/apis/soldo-business-api-v2-0/revisions/23fc5d07b367?raw)
