Create category
Adds one of Finta’s standard categories to the company’s chart of accounts: the same
ones people add themselves under Settings -> Categories in the Finta web app. You name an
option’s key from GET /categories/available, never a category name or parent, and each
option always goes under the same parent, so nothing else can be created. Check
GET /categories/available for what each option adds and what it’s for. Requires API access
and Accounting setup: Manage.
Returns every category of the option in the GET /categories shape, so you can use the
IDs right away: 201 when this call added any of them or repaired one, 200 when they
all already existed. Repairing means an existing category with the option’s name that
wasn’t yet linked to it becomes the option’s category (for Equipment, that turns on
depreciation). Retrying is safe without an idempotency key; an option’s categories are never
created twice. Check GET /categories first.
Supply an optional reason to explain why the category is being added. Each newly created
category saves it with the caller, time and app. Existing and repaired categories keep their
prior attribution. This response and the list endpoint return the saved reason, including
attribution when this request omitted the text. A blank reason is saved as no text.
What happens for an option depends on its access in GET /categories/available. An option
only Finta adds (access: request_required) is not created here: it returns 403
request_required. Ask for it from Settings -> Categories in the web app, and Finta adds it.
An option that already exists returns 200. An option the company’s plan doesn’t include
(access: plan_upgrade_required) returns 403 plan_upgrade_required before the access check.
Authorizations
Body
The key of an option from GET /categories/available, which says what each adds and whether the company can add it. rd_expenses, intercompany_expenses, investments, and shareholder_dividends need the Startup plan or higher. intercompany_expenses, investments, and shareholder_dividends are added by Finta: while the option's access is request_required and it is absent, these three keys return 403 request_required.
fulfillment, cost_of_services, rd_expenses, intercompany_expenses, grant_income, equipment, inventory, investments, shareholder_dividends "equipment"