---
title: "Add Expense Category"
method: POST
path: "/business/v2/entities/expense-category"
tags: ["Expense Categories"]
---

# Add Expense Category

`POST /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_write`
- TypeScript: <https://skmtc.dev/soldo/apis/soldo-business-api-v2-0/docs/business/v2/entities/expense-category/post.ts> (a function with typed inputs; its response is checked against the schema)

Endpoint to add a new `ExpenseCategory`.

## Request body

- CreateExpenseCategory: Add `ExpenseCategory` JSON parameters.
  - `code` string: The code of the `ExpenseCategory`.
  - `name` string, required: The name of the `ExpenseCategory`.
  - `description` string: The description of the `ExpenseCategory`.
  - `tax_rate_id` string: The ID of the VAT Rate linked to the `ExpenseCategory`.
  - `enabled` boolean: it determines whether the `ExpenseCategory` is visible on the transaction detail.
  - `merchant_categories` MerchantCategory[]: A list of merchant categories this `ExpenseCategory` is auto-assigned to.
  - `expense_type` 'COMPANY' | 'PERSONAL' | 'TRAVEL_AND_ENTERTAINMENT', required

## Response `200`

The result is an `ExpenseCategory`.

- 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.
- `404`: One or more resource requested does not exist.

---

[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)
