Skip to main content

Create Cost Category

POST 

/api/cost-categories

Create a new cost category.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

Authentication: Requires Bearer token.

Request body fields:

  • name (required, string, max:255) — unique category name
  • default_nominal_code_id (optional, integer, nullable) — the nominal code a landed-cost bill line assigned to this category posts its debit to by default. Must exist in nominal_codes. Leave null to fall back to the nominal code mapping settings at posting time.

Request

Responses

Created

Response Headers
    Content-Type