Organization

Export charges

Stream one FOCUS 1.3 JSON record per usage event as JSONL; the server paginates day by day, so windows longer than 93 days belong here.

GET /organization/v1/charges● Supported

Official reference ↗

Request parameters

  • starting_atstring必填

    query: Window start (inclusive), UTC ISO 8601, e.g. 2026-09-26T00:00:00Z

  • ending_atstring必填

    query: Window end (exclusive), UTC ISO 8601; at most 93 days after starting_at (the charges export has no such cap)

Returns

200

Errors follow the problem+json format — see error codes

Response

HTTP 200

FOCUS 1.3 JSONL stream

application/x-ndjson

NameTypeDescription
ChargePeriodStartstringStart of the charge period (the event time), UTC.
ChargePeriodEndstringEnd of the charge period (the event time), UTC.
BilledCoststringAmount billed in USD as an exact decimal string; unsettled usage counts as 0 until it settles.
BillingCurrencystringCurrency of BilledCost; always `USD`.
ServiceNamestringName of the platform service that produced the usage (the source service of the usage event).
ServiceCategorystringCategory of the service; a service without a registered category reports its own name.
ResourceIdstringId of the resource that the usage belongs to.
ResourceNamestringDisplay name of the resource; falls back to ResourceId when no name is known.
ConsumedQuantitystringQuantity consumed, an exact decimal string in ConsumedUnit.
ConsumedUnitstringUnit of ConsumedQuantity as reported by the metering line; quantities of different units are never added together.
ChargeCategorystringKind of charge.
ChargeClassstring | null`Correction` for an event that corrects an earlier charge (its BilledCost is negative); null for ordinary usage.
ChargeDescriptionstringText such as `<service>/<offering> usage` that says what was charged.
x_RequestIdstring | nullAlways null in the export; look up the request id of an event with getOrganizationEvent.
x_EventIdstringId of the usage event this record comes from; pass it to getOrganizationEvent.

Response fields

FieldDescription
ChargePeriodStart / ChargePeriodEndCharge period start and end (UTC)
BilledCost / BillingCurrencyThe event's cost (decimal string) and the currency charged (CNY or USD)
ServiceName / ServiceCategory / ResourceId / ResourceNameFOCUS service and resource columns
ConsumedQuantity / ConsumedUnitConsumed quantity and unit
ChargeCategoryUsage or Adjustment
ChargeClass"Correction" for corrections, null otherwise
ChargeDescriptionA human-readable description of the meter
x_RequestId / x_EventIdThe X-Request-Id of the call behind this record; the matching usage event id

For the transactions behind one event see Get a usage event.