Skip to main content

Custom classifiers

Classification dimensions the company defines itself — project, contract, branch — next to category and classification center. Each classifier belongs to a company (filter with company_id) and carries its values[] inline; the values are what gets assigned to payables, receivables and transactions.

CommandHTTPDescription
custom-classifiers listGET /v1/custom-classifiersList custom classifiers
custom-classifiers createPOST /v1/custom-classifiersCreate a custom classifier
custom-classifiers getGET /v1/custom-classifiers/{id}Get a custom classifier by id
custom-classifiers updatePATCH /v1/custom-classifiers/{id}Update a custom classifier
custom-classifiers deleteDELETE /v1/custom-classifiers/{id}Delete a custom classifier
custom-classifiers values createPOST /v1/custom-classifiers/{id}/valuesAdd a value to a custom classifier
custom-classifiers values updatePATCH /v1/custom-classifiers/{id}/values/{valueId}Update a custom classifier value
custom-classifiers values deleteDELETE /v1/custom-classifiers/{id}/values/{valueId}Delete a custom classifier value

field_type sets the field (dropdown, the default, radio, multi_select, number, text, phone, url, date, datetime); number_format only applies to number and option_style only to the list types. A value takes a hex color (#rrggbb), or a palette color when omitted; color: null on values update goes back to the palette. Deleting a classifier, or a value, already assigned to a bill or transaction answers 422 (reason: in_use) — deactivate it with active: false instead, which keeps the assignments. The scopes are finance/custom_classifiers.

Examples​

--params carries query and path parameters (id, page, filters); --json carries the request body; --fields limits which fields come back — worth using on every list/get to save context. See Global flags for the full reference.

# List custom classifiers
kobana finance custom-classifiers list \
--params '{"company_id": "COMPANY_ID", "active": true}' \
--fields "id,company_id,name,field_type,active,values"

# Get a custom classifier by id
kobana finance custom-classifiers get \
--params '{"id": "CUSTOM_CLASSIFIER_ID"}'

# Create a custom classifier
kobana finance custom-classifiers create \
--json '{"company_id": "COMPANY_ID", "name": "Project", "field_type": "dropdown"}'

# Update a custom classifier
kobana finance custom-classifiers update \
--params '{"id": "CUSTOM_CLASSIFIER_ID"}' \
--json '{"name": "Project (2026)"}'

# Add a value to a custom classifier
kobana finance custom-classifiers values create \
--params '{"id": "CUSTOM_CLASSIFIER_ID"}' \
--json '{"value": "Downtown site", "color": "#2a78d6"}'

# Deactivate a value in use
kobana finance custom-classifiers values update \
--params '{"id": "CUSTOM_CLASSIFIER_ID", "valueId": "VALUE_ID"}' \
--json '{"active": false}'

# Delete a custom classifier value
kobana finance custom-classifiers values delete \
--params '{"id": "CUSTOM_CLASSIFIER_ID", "valueId": "VALUE_ID"}' \
--dry-run

# Delete a custom classifier
kobana finance custom-classifiers delete \
--params '{"id": "CUSTOM_CLASSIFIER_ID"}' \
--dry-run

Next steps​