Skip to main content
POST
Create category

Authorizations

Authorization
string
header
required

An API key prefixed with finta_, or the access token from a Finta CLI browser login (finta login), prefixed with finta_oat_. A CLI login's access token lasts one hour and the CLI renews it itself.

Body

application/json
template
enum<string>
required

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.

Available options:
fulfillment,
cost_of_services,
rd_expenses,
intercompany_expenses,
grant_income,
equipment,
inventory,
investments,
shareholder_dividends
Example:

"equipment"

reason
string

Why the company is adding this template. Omit the field to record attribution without reason text. Only newly created categories receive a reason.

Maximum string length: 500

Response

The template's categories all already existed. Returns them unchanged.

object
enum<string>
required
Available options:
list
url
string
required

The canonical path of the collection, relative to the API host.

Example:

"/api/v1/categories"

data
object[]
required