Cost Categories
List Cost Categories
List all cost categories, ordered by name.
Create Cost Category
Create a new cost category.
List Cost Categories (Paginated)
Paginated, server-side-filtered list of cost categories. Supports search (name / id / keyword aliases), active/system/selectable filters, and sorting, returning a standard paginated envelope. Each item includes usage counts and, when set, the embedded default nominal code.
Get Cost Category
Show a single cost category with usage counts and its embedded `default_nominal_code` (when set).
Update Cost Category
Update an existing cost category.
Delete Cost Category
Delete a cost category. Fails if the category is a system category, or if it is in use (bill lines / breakdown items / financial line types) unless `?force=true` is passed.
List Cost Category COGS Channels
Lists the sales channels and sub-sales channels a per-channel COGS account can be set for on a cost category (the `cogs_accounts` field of Create/Update Cost Category). Sales channels come first, then sub-sales channels labelled '<sales channel> › <sub-sales channel>'.
Get Allocation Data Quality
How many active products carry a real (vendor or measured) weight and real dimensions, an estimated one, or none. Use it to judge whether splitting landed costs by weight or volume (a cost category's `default_proration_strategy`) is supported by your product data. Bundles and matrix parents are left out (they are never received).
Archive Cost Category
Archive a cost category (soft-archive via is_active=false). System categories cannot be archived (returns 422).
Unarchive Cost Category
Unarchive a cost category (is_active=true).
Merge Cost Category
Merge a cost category into a target. Re-points all references (bill lines, breakdown items, financial line types) from the source to the target, then deletes the source. Returns the target category.
Fuzzy Match Cost Category
Suggest a fuzzy-matched category for the given name — used by the create form to warn 'Did you mean Freight?' before a near-duplicate is created. Returns null in `data` when no close match is found.
List Uncategorised Duty Bill Lines
List bill lines whose description reads as customs duty but that have no cost category — lines imported from an accounting system, typed by hand, or created before automatic categorisation. These are invisible to actual duty, the duty reconciliation report and duty accrual until they are in your customs duty category.
Apply Customs Duty Category to Bill Lines
Put reviewed bill lines in your customs duty category. Each bill is updated the same way as editing its lines, so its allocations, inventory cost and accounting postings follow the normal edit rules.