v4

latestOpenAPI 3.1.0MIT Licenseraw.githubusercontent.com2026-08-01645.8 KB
Billing

Trigger billing data refresh

Force a full BigQuery billing data refresh for the specified month. Defaults to the current month if no time period is provided.

post/api/v1alpha/billing/fetch

Request body

time_periodstring

Month to refresh in MM/YYYY format. Defaults to current month.

Example request

{
  "time_period": "07/2023"
}

Response

Refresh completed successfully

time_period_querystring

Time period for the billing data

Example response

{
  "cost_by_service": [
    {
      "cost": "$123.45"
    }
  ],
  "compute_cost_breakdown": [
    {
      "source": "batch-production",
      "cost": "$123.45"
    }
  ],
  "cost_by_sku_label": [
    {
      "cost": "$123.45"
    }
  ],
  "time_period_query": "07/2023"
}