Create Cost Entry
POST/api/cost-entries
Creates a cost entry.
purchase-orders:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Required fields: description, cost_date (Y-m-d), amount (in the entry's currency) and amount_in_tenant_currency.
Optional fields: cost_entry_type_id, status (draft, pending_allocation, partially_allocated or allocated; default draft), supplier_id, reference_number, currency_id, currency_rate, nominal_code_id, bill_id and bill_line_id (link the entry to a bill), source_type, source_id and source_period (identify an originating document and the period the cost applies to).
Authentication: Requires Bearer token.
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.