Skip to main content

List Cost Category Keyword Aliases

GET 

/api/cost-category-keyword-aliases

List active cost-category keyword aliases used by the OCR cost-line matcher. Returns an object keyed by cost_category_id with arrays of keyword strings. Used by the Settings page that lets users curate which keywords (e.g., "freight", "fuel surcharge", "customs", "duty", "clearance") map to which CostCategory.

Keywords feed Tier 4 (keyword) of the 6-tier match cascade in the OCR manager.

Response 200:

{
"data": {
"4": ["freight", "shipping", "fuel surcharge", "airfreight"],
"5": ["customs", "duty", "clearance", "import duty"],
"6": ["insurance", "cargo insurance"]
}
}

Request

Responses

Successful response