expense_category_archived
The expense category you sent is archived and cannot be assigned to an expense. Its earlier expenses keep it, but it is no longer offered for new expenses or for changing the category of an existing one. `param` is `expense_category_id`.
| Code | Type | HTTP | Category |
|---|---|---|---|
expense_category_archived | invalid_request_error | 422 | Expenses |
Cause
The expense category you sent is archived and cannot be assigned to an expense. Its earlier expenses keep it, but it is no longer offered for new expenses or for changing the category of an existing one. param is expense_category_id.
What to do
Choose an active category (GET /v1/companies/{company}/purchase-invoices/expense-categories) or restore the archived one with POST /v1/companies/{company}/purchase-invoices/expense-categories/{expense_category}/restore. Editing an expense that already has an archived category without changing it is allowed.