Skip to content
gist.link ↗

currentPeriodEstimate

Query Billing API — POST https://billing.api.gist.link/graphql

The AWS-style live estimate for the current billing period: month-to-date base + seat + per-service usage charges, plus a linear month-end forecast. Any org member.

billing:query:currentPeriodEstimate

The calling IAM key must hold this permission (or a wildcard that covers it: billing:query:* or billing:*) and the access token must have been minted with audience=billing. See Permissions.

type Query {
currentPeriodEstimate: PeriodEstimate!
}

This query takes no arguments.

PeriodEstimate! — see the Billing types reference.

Terminal window
curl https://billing.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query CurrentPeriodEstimate { currentPeriodEstimate { period_start period_end days_elapsed days_total plan_key plan_name billed } }",
"variables": {}
}
JSON