Skip to main content

List the billing service rates.

GET/api/v1/company/billing-ratesbilling:read

The service rates (OCR pages, table extraction pages, LLM tokens, database storage and the like) that apply to the company's billing tenant: its own rates, with their history (a replaced rate has effective_to), and the global defaults it falls back to (is_global_default). Needs View Service Rates, as the Portal's billing administration does.

Scopebilling:read (sensitive)
AsynchronousNo
MCP toollist_company_billing_rates
Portal permissionsview_service_rates
Pagingkeyset
Default orderbilling_rate_id
Sort fieldsbilling_rate_id

Parameters​

NameInTypeRequiredDescription
limitqueryintegerOptionalDefault: 50; ≥ 1
cursorquerystringOptional
sortquerystringOptionalComma-separated sort fields, - for descending.
Docwize-Versionheaderstring (date)Optional
If-None-MatchheaderstringOptionalAnswers 304 when the representation is unchanged (resources that publish an ETag).

Responses​

StatusDescriptionBody
200Success.application/json object
304Not modified (If-None-Match matched the ETag).
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
410cursor_expiredapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422invalid_cursor, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

200 body​

FieldTypeRequiredDescription
itemsarray of BillingRateRequired
next_cursorstring or nullRequired
warningsarray of objectRequired

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

BillingRate​

FieldTypeRequiredDescription
billing_rate_idstringRequired
created_by_emailstring or nullRequiredThe e-mail address of the administrator who set the rate; null for a seeded one.
currencystringRequiredThe currency symbol or code the rate is stated in.
effective_fromstring (date-time)Required
effective_tostring (date-time) or nullRequiredWhen a newer rate for the same service replaced it; null while it is in force.
is_global_defaultbooleanRequiredtrue 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_typestring or nullRequiredThe model or engine the rate is for; null for a service without one.
rate_amountstringRequiredThe price per rate_unit, in currency.
rate_unitstringRequiredWhat the amount is per, e.g. page or 1m_tokens.
service_typestringRequiredThe billed service, e.g. ocr, table_extraction or llm.