Create Financial Line Type
POST/api/financial-line-types
Creates a new financial line type.
settings:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Requires Bearer token.
Fields:
- name (required, string) — Name of the financial line type
- classification (required, string) — One of: revenue, cost
- allocate_to_products (optional, boolean) — Whether to allocate costs/revenue to products
- proration_strategy (optional, string) — One of: revenue_based, cost_based, weight_based, volume_based, quantity_based, specific_line, manual
- nominal_code_id (optional, integer|null) — ID of associated nominal code
Requires permission: financial_line_types.create
Request
Responses
- 200
- 401
- 403
- 422
- 429
OK
Response Headers
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
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.