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 namedefault_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 innominal_codes. Leave null to fall back to the nominal code mapping settings at posting time.
Request
Responses
- 201
- 401
- 403
- 422
- 429
Created
Response Headers
Content-Type
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Unprocessable Entity
Response Headers
Content-Type
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.