expense_category_name_taken
Another expense category of the company already has that name. The comparison ignores capitalization and accents and also counts the archived categories, so the name stays reserved even when the category that holds it is not shown. `param` is `name`.
| Code | Type | HTTP | Category |
|---|---|---|---|
expense_category_name_taken | invalid_request_error | 422 | Expenses |
Cause
Another expense category of the company already has that name. The comparison ignores capitalization and accents and also counts the archived categories, so the name stays reserved even when the category that holds it is not shown. param is name.
What to do
Pick a different name or use the existing category (GET /v1/companies/{company}/purchase-invoices/expense-categories?status=all lists them, archived ones included). If the name belongs to an archived category, restore it with POST /v1/companies/{company}/purchase-invoices/expense-categories/{expense_category}/restore instead of creating another one.