Factuarea APIDevelopers

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`.

CodeTypeHTTPCategory
expense_category_archivedinvalid_request_error422Expenses

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.

On this page

Need a hand?Contact support