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.
| Command | HTTP | Description |
|---|---|---|
custom-classifiers list | GET /v1/custom-classifiers | List custom classifiers |
custom-classifiers create | POST /v1/custom-classifiers | Create a custom classifier |
custom-classifiers get | GET /v1/custom-classifiers/{id} | Get a custom classifier by id |
custom-classifiers update | PATCH /v1/custom-classifiers/{id} | Update a custom classifier |
custom-classifiers delete | DELETE /v1/custom-classifiers/{id} | Delete a custom classifier |
custom-classifiers values create | POST /v1/custom-classifiers/{id}/values | Add a value to a custom classifier |
custom-classifiers values update | PATCH /v1/custom-classifiers/{id}/values/{valueId} | Update a custom classifier value |
custom-classifiers values delete | DELETE /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
- Classification centers
- Schema introspection — every parameter this resource accepts.