Set a billing service rate.
Sets the company's own billing tenant's rate for a service, model and unit from now on: the rate in force for the same service_type, model_type and rate_unit is closed (its effective_to is now) and this one opens, so one stays in force. Global defaults cannot be set here, only the company's own. Needs Create Service Rates; 403 when the company has no billing tenant. Written to the identity primary.
Version 2026-12-01. The billing_rate_id of the write receipt is declared as an integer ID, not a string key. The value is a string in both versions.
| |
|---|
| Scope | settings:write (sensitive) |
| Asynchronous | No |
| MCP tool | create_company_billing_rate |
| Portal permissions | create_service_rates |
Parameters
| Name | In | Type | Required | Description |
|---|
Docwize-Version | header | string (date) | Optional | |
Idempotency-Key | header | string | Optional | max 255 |
Request body
Responses
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
BillingRate
| Field | Type | Required | Description |
|---|
billing_rate_id | string | Required | |
created_by_email | string or null | Required | The e-mail address of the administrator who set the rate; null for a seeded one. |
currency | string | Required | The currency symbol or code the rate is stated in. |
effective_from | string (date-time) | Required | |
effective_to | string (date-time) or null | Required | When a newer rate for the same service replaced it; null while it is in force. |
is_global_default | boolean | Required | true for a default every organisation falls back to (set by Docwize, never through this API); false for a rate of the caller's own billing tenant. |
model_type | string or null | Required | The model or engine the rate is for; null for a service without one. |
rate_amount | string | Required | The price per rate_unit, in currency. |
rate_unit | string | Required | What the amount is per, e.g. page or 1m_tokens. |
service_type | string | Required | The billed service, e.g. ocr, table_extraction or llm. |
| Field | Type | Required | Description |
|---|
currency | string or null | Optional | At most 3 characters; the default is $. |
model_type | string or null | Optional | The model or engine the rate is for; null (the default) for a service without one. At most 100 characters. |
rate_amount | string | Required | The price per rate_unit: not negative, up to 8 digits before the point and 10 after. |
rate_unit | string | Required | What the amount is per. At most 30 characters. |
service_type | string | Required | The billed service. At most 50 characters. |