Organization

List costs

Billed cost per time bucket, groupable by FOCUS columns; amounts are exact decimal strings in the currency the organization is charged in (BillingCurrency).

GET /organization/v1/costs● 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)

  • bucket_widthstring必填

    query: Bucket width: 1h (aligned to the hour) or 1d (aligned to the UTC day)

    取值 1h1d
  • time_zonestring可选
    默认 "UTC"

    query: IANA time zone name (for example Asia/Shanghai) whose local hours or days form the buckets. Defaults to UTC. Offsets such as +08:00 are rejected. The window widens to whole local buckets; a day that crosses a daylight-saving change lasts 23 or 25 hours. starting_at and ending_at stay UTC instants.

  • group_byarray可选

    query: Columns to group by (repeatable): ServiceName, ServiceCategory, ResourceId, ConsumedUnit; usage always splits ConsumedUnit out server-side

  • pagestring可选

    query: The opaque cursor from the previous page's next_page — pass it back unchanged

Returns

200 page

Errors follow the problem+json format — see error codes

Response

HTTP 200

Cost page

application/json

NameTypeDescription
objectstringObject type; always `page`.
dataarray<object>Cost buckets in time order, one per hour or day of the requested window.
data[].objectstringObject type; always `bucket`.
data[].starting_atstringStart of the bucket, UTC, inclusive.
data[].ending_atstringEnd of the bucket, UTC, exclusive.
data[].estimatedbooleanAlways false; kept for the AWS GetCostAndUsage shape.
data[].resultsarray<object>Aggregates of the bucket, one entry per group requested with group_by.
has_morebooleanWhether more results exist beyond this page; request again with `page` set to `next_page` to read them.
next_pagestring | nullOpaque cursor for the next page; null on the last page. Pass it unchanged as `page`.

Response fields

FieldDescription
objectalways "page"
data[].objectalways "bucket"
data[].starting_at / data[].ending_atBucket start and end (UTC, aligned to the hour or the day)
data[].estimatedAlways false: a charge is final when it is recorded; kept to match the AWS GetCostAndUsage shape
data[].results[].ServiceNameServing service name (present only when group_by requests ServiceName)
data[].results[].ServiceCategoryFOCUS service category (present only when requested)
data[].results[].ResourceId / data[].results[].ResourceNameResource id and display name; ResourceName rides ResourceId and falls back to the id when unresolvable
data[].results[].BilledCostThe group's cost in the bucket, a decimal string in BillingCurrency
data[].results[].BillingCurrencyThe currency charged, CNY or USD; a group charged in both currencies in one bucket is two rows
has_more / next_pageWhether more pages follow; the next page's opaque cursor (null when done)

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