get_billing
Get the project's credit balances (paid + testing) and which ledger it settles on. billingModel is prepaid (metered against the credit balance) or invoiceable (an Enterprise account, settled on the contract — its credit fields read empty/zero by design, not because it is out of credits). A zero balance is not on its own a reason to stop: live traffic is never refused for an empty balance, and a free-tier project is exempt from live credit billing entirely. Only the testing pool refuses when exhausted (402 testing_credits_exhausted). Read this before concluding from any other field that a project cannot send. On a Pro or Scale plan billed for overage, overage reports the billing cycle running now: usedCredits, overageCredits (beyond the allowance and prepaid credits), amount so far in minor units of currency (null when it cannot be worked out), windowEndsAt, throttled (true while this cycle's request limit is halved because spend passed five times the plan's credits) and throttledUntil (when the halved limit ends, or null); it is absent otherwise. On Pro or Scale, overageBilling is the account's own overage setting, changed with set_overage_billing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||