Get the billing report.
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
The billing report for one billing period across every organisation of the company's billing tenant: the period, totals (users, external users, storage, database storage, services, discount), the active regular users with the bracket that prices them, external users with their login days, OCR, table extraction and LLM usage costs, and any billing override. periods_back 0 is the current period, 1 the previous one, up to 12. Needs View Tenant Usage and View License Billing and View External User Billing and the billing tenant's super_admin role (see GET /company/billing-status). Read-only. include_users=false leaves out the list of regular users, which can be large; every count and total stays.
| スコープ | billing:read (機密性の高いスコープ) |
| 非同期 | いいえ |
| MCP ツール | get_company_billing_report |
| Portal の権限 | view_tenant_usage, view_license_billing, view_external_user_billing |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
periods_back | query | integer または null | 任意 | 0 for the current billing period, 1 for the previous, up to 12 (default 0). |
include_users | query | boolean または null | 任意 | false leaves out the list of regular users; every count and total stays (default true). |
Docwize-Version | header | string (date) | 任意 | |
If-None-Match | header | string | 任意 | Answers 304 when the representation is unchanged (resources that publish an ETag). |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json BillingReport |
304 | Not modified (If-None-Match matched the ETag). | |
400 | invalid_version | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
BillingBracket
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
currency | string | 必須 | |
max_users | integer または null | 必須 | |
min_users | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
price_per_user | string | 必須 |
BillingDatabaseStorage
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
billable_gb | string | 必須 | |
cost | string | 必須 | |
free_gb | string | 必須 | The free allowance (50 GB unless the company's billing configuration says otherwise). |
rate_per_gb | string | 必須 | The database_storage rate in force, converted to ZAR. |
used_bytes | string または null | 必須 | From the newest daily snapshot of each organisation; null while any organisation has no measurement. |
used_gb | string または null | 必須 | |
warning | string または null | 必須 | over_allowance, or approaching_allowance from 80 percent of the allowance; null otherwise. |
BillingExternalUser
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
billing_fraction | string | 必須 | The share of a user licence the external user costs this period. |
email | string | 必須 | |
login_days | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
org_name | string または null | 必須 | |
user_id | string | 必須 |
BillingOverride
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
billing_currency | string | 必須 | |
billing_mode | string | 必須 | itemized, fixed_fee or per_page. |
custom_discount_pct | string | 必須 | |
fixed_monthly_fee | string または null | 必須 | |
fixed_user_fee | string または null | 必須 | |
include_services | boolean | 必須 | |
include_storage | boolean | 必須 | |
include_users | boolean | 必須 | |
notes | string または null | 必須 | |
per_page_rate | string または null | 必須 | |
per_page_rate_currency | string または null | 必須 |
BillingPerPageCosts
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
currency | string | 必須 | |
per_page_rate | string | 必須 | |
total_cost | string | 必須 | |
total_pages | string | 必須 |
BillingRegularUser
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
email | string | 必須 | |
join_date | string または null | 必須 | |
last_active | string または null | 必須 | |
name | string | 必須 | |
org_name | string または null | 必須 | |
surname | string | 必須 | |
user_id | string | 必須 |
BillingRegularUsers
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
billable_count | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
bracket | BillingBracket または null | 必須 | The bracket that prices the billable users; null when none applies. |
min_billable_users | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
total_active | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
users | BillingRegularUser の配列 | 必須 | Every regular user; empty when include_users is false. |
BillingReport
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
external_users | BillingExternalUser の配列 | 必須 | |
override | BillingOverride または null | 必須 | The billing override active at the report time; null when none. |
per_page_costs | BillingPerPageCosts または null | 必須 | Null unless the override bills per page. |
period_end | string (date) | 必須 | |
period_start | string (date) | 必須 | |
period_start_day | integer | 必須 | The day of the month the company's billing period starts on. ≥ -2147483648; ≤ 2147483647 |
regular_users | BillingRegularUsers | 必須 | |
service_costs | BillingServiceCosts または null | 必須 | |
totals | BillingTotals | 必須 |
BillingServiceCost
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
currency | string | 必須 | |
quantity | string | 必須 | |
service_type | string | 必須 | |
total_cost | string | 必須 | |
unit | string | 必須 | |
unit_cost | string | 必須 |
BillingServiceCosts
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
currency | string | 必須 | |
entries | BillingServiceCost の配列 | 必須 | |
total_cost | string | 必須 |
BillingStorage
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
billable_gb | string | 必須 | |
free_gb | string | 必須 | |
storage_cost | string | 必須 | |
total_bytes | string | 必須 | |
total_gb | string | 必須 |
BillingTotals
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
currency | string | 必須 | |
database_storage | BillingDatabaseStorage または null | 必須 | The company's database against its free allowance; its cost is in the grand totals. Null when it could not be read (a warning says so). |
days_elapsed | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
days_in_period | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
external_mtd | string | 必須 | |
external_projected | string | 必須 | |
grand_total_mtd | string | 必須 | |
grand_total_projected | string | 必須 | |
regular_total | string | 必須 | |
storage | BillingStorage | 必須 |