v1

latestOpenAPI 3.1.02026-07-26106201349.6 KB
Gateway

Get billing summary information for an account

get/v1/accounts/{account_id}/billing/summary

Path parameters

account_idstring required

The Account Id

Query parameters

startTimestring date-time required

Start time for the billing period. Note: Costs are aggregated daily. Only the date portion (YYYY-MM-DD) is used; the time portion is ignored. For example, 2025-10-05T07:18:29Z and 2025-10-05T23:59:59Z are treated the same as 2025-10-05T00:00:00Z.

endTimestring date-time required

End time for the billing period (exclusive). Note: Costs are aggregated daily. Only the date portion (YYYY-MM-DD) is used; the time portion is ignored. Costs for the end date are NOT included. For example, to get costs for Oct 5 and Oct 6, use: start_time: 2025-10-05T00:00:00Z end_time: 2025-10-07T00:00:00Z (Oct 7 is excluded)

granularity'GRANULARITY_UNSPECIFIED' | 'DAILY'

Requested breakdown granularity. Defaults to UNSPECIFIED (no breakdown).

Response

A successful response.