Skip to content

Get Billing Information



GET /api/v1/billing/detail/list

Overview

Reads the Billing Center billing details of the current workspace by date.

Before You Call and Usage Steps

Use the API Key of the target workspace. You can only read data from the Billing Center site corresponding to the workspace that owns the Key; you cannot switch sites through additional workspaceUUID/brandKey/site parameters. The endpoint does not charge, top up, settle, or modify plans. Billing Center data may have generation or settlement delays, and an empty result does not mean no consumption occurred; verify against the actual billing period and the Billing Center. Amounts, currencies, precision, and statistical calibers follow the Billing Center of that workspace; Studio does not perform conversion or add currency fields, and example values should not be treated as prices.

Requires either the billing.billingRead or billing.workspaceUpgrade permission. startDate/endDate each default to the current date on the Studio server (local date.today), not the workspace time zone or the browser time zone. We recommend always explicitly submitting both start and end dates in the same format. There are no pagination parameters; do not add parameters such as pageSize/date/billingKey yourself.

Public validation only requires strings; it does not validate real dates, the 8-digit format, or the order. The Billing Center is responsible for final acceptance/rejection and boundary calibers, and Studio cannot guarantee automatic swapping, normalization, or completion of dates. An explicit empty string differs from omission: the SDK sends the start and end dates upstream only when both values are non-empty, and an empty value for either one causes the entire date range not to be sent. Do not use empty values to request historical billing periods.

Request Headers

Parameter Type Required Description
DF-API-KEY string Y OpenAPI authentication credential of the workspace.
Example: <DF-API-KEY>
How to obtain or fill in: Obtain an OpenAPI Key with this operation permission from the API Key management of the target workspace.

Query Request Parameters

Parameter Type Required Description
startDate string Optional string; defaults to the server's current date when omitted. An empty string does not apply the default date; the public declaration has no format regex.
Allows null: False
Example: 20260730
How to obtain or fill in: Select a YYYYMMDD date according to the target billing period; we recommend filling it in explicitly together with endDate.
endDate string Optional string; defaults to the server's current date when omitted, and an empty value prevents the SDK from forwarding the entire date range. Studio does not validate the order.
Allows null: False
Example: 20260731
How to obtain or fill in: Select the target end date, preferably not earlier than startDate; the range boundaries follow the Billing Center.

Additional Parameter Notes

Returns the Billing Center details list. The field table and examples are interpreted according to the actual upstream structure; product identifiers, field types, and null values are not replaced by Studio with brand display names or default values.

Request Example

curl --get 'https://openapi.guance.com/api/v1/billing/detail/list' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  --data-urlencode startDate=20260730 \
  --data-urlencode endDate=20260731

Response

HTTP 200, application/json. The example below shows the main fields that can be read directly.

Field Type Description
content array or object The Billing Center bill list returned as-is; in the example each item is an object; it may be an empty array; when the upstream lacks content, the SDK falls back to an empty object {}, with no Studio pagination wrapper.
content[] object A single billing detail record. Fields come from the Billing Center, and not all fields are guaranteed to exist in every record.
content[].consumeTimeOfDay JSON Consumption date, in the example YYYY-MM-DD, not the call time. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].orgName JSON Billing Center organization name, not a workspace UUID. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].productName JSON Upstream product identifier/name; do not assume a fixed brand display name, and do not rewrite the actual returned value. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].productDetail JSON Billing Item display name. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].billingKey JSON Billing category identifier; some historical responses may contain only tag6. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].billingCycle JSON Settlement cycle marker, such as Day/Month/Year/Single; handle it according to the actual returned value. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].billingResult JSON Amount payable, per the Billing Center caliber. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].deductionAmount JSON Deduction amount. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].oweAmount JSON Overdue amount. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].originAmount JSON Original price amount. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].serviceBillingAmount JSON Service Charges amount. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].couponAmount JSON Voucher deduction amount. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].storedCardAmount JSON Stored-value card deduction amount. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].cashAmount JSON Cash deduction amount. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].cashCouldAmount JSON Cloud marketplace deduction amount; the historical field spelling is retained. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].commodityCategory JSON Product type/payment mode, defined by the upstream. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].consumePlatform JSON Settlement channel marker. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].customerIdentifier JSON Cloud marketplace customer identifier; it is not a credential usable for other APIs. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].consumption JSON Upstream consumption supplementary information; Studio does not process it. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].workspaceUuid JSON Identifier of the workspace that the consumption belongs to; note that the lowercase uid spelling differs from workspaceUUID. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].workspaceName JSON Name of the workspace that the consumption belongs to. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].consumeTime JSON Consumption time; the upstream determines the type and unit, so do not treat it as a fixed second-level timestamp. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].billingResultDetails JSON Additional Billing Center billing details. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].count JSON Usage amount; the unit depends on the Billing Item and cannot be added directly across Billing Items. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].tag6 JSON Historical Billing Item identifier, such as session_replay. Historical null values may be null, an empty string, or the literal string None; handle them according to the actual type.
content[].declaration object or null Workspace public declaration attached to non-empty account consumption records; it may be null or an empty object when not configured. Empty object elements are not added.
{
  "code": 200,
  "content": [
    {
      "consumeTimeOfDay": "2026-07-31",
      "orgName": "None",
      "productName": "None",
      "productDetail": "Session Replay",
      "billingCycle": "None",
      "billingResult": 0,
      "deductionAmount": "None",
      "oweAmount": "None",
      "originAmount": 0,
      "serviceBillingAmount": "None",
      "couponAmount": "None",
      "storedCardAmount": "None",
      "cashAmount": "None",
      "cashCouldAmount": "None",
      "commodityCategory": "None",
      "consumePlatform": "None",
      "customerIdentifier": "None",
      "consumption": "None",
      "workspaceUuid": "None",
      "workspaceName": "None",
      "consumeTime": "None",
      "tag6": "session_replay",
      "billingResultDetails": "None",
      "count": 0,
      "declaration": {}
    }
  ],
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Responses

For authentication, rate limiting, and common request errors, see Common Error Definitions.

The Billing Center SDK first maps ft.CloudCareApiError and overrides it with the upstream HTTP/business code. Because this SDK does not set the passthrough flag, a final code greater than or equal to 500 is globally wrapped as HTTP 500, ft.InternalServerError, and generic text; do not assume that 503 or the original 5xx message is preserved externally. When the final code is less than 500, CloudCareApiError and the actual message are preserved. Connection exceptions default to 400. Only the verified Studio mappings are listed here; this is not an exhaustive list of Billing Center business errors or proxy errors.

HTTP Status errorCode Trigger Condition Message or Response Description Handling
406 ft.ParameterValidationFailed An undeclared Query parameter is used or a parameter violates the rules Parameter parsing failed Check the Query parameter table and the example.
404 ft.ObjectNotExists No workspace record corresponding to the current Key is found The specified object does not exist Check the target workspace and whether the Key is valid.
406 ft.InvalidBossNode The Billing Center brand/node bound to the workspace is not configured or unavailable Invalid Boss node Contact the administrator to check the workspace Billing Center binding and site configuration; do not try to work around it by changing dates.
400 ft.CloudCareApiError The Billing Center request fails to connect (defaults to 400), or the upstream HTTP/business error has a mapped code less than 500 Internal API call failed Keep the HTTP status, message, and traceId, and check Billing Center availability and the specific error; the final 4xx may vary, and a code greater than or equal to 500 is globally wrapped as ft.InternalServerError.
500 ft.InternalServerError The Billing Center returns an unexpected type/missing fields or invalid JSON, or another storage or formatting error occurs Internal error Keep the traceId and contact the administrator to check the upstream response, then retry reading later.

Feedback

Is this page helpful?