Skip to main content
POST
GetBillingAccount

Authorizations

Authorization
string
header
required

A user session token or personal API key.

Headers

Connect-Protocol-Version
number
required

Define the version of the Connect protocol

Example:

1

Connect-Timeout-Ms
number

Define the timeout, in ms

Example:

1000

Body

application/json
name
string

Response

Success

The prepaid balance of the credential's workspace. A singleton: every credential reads its own workspace's.

cf. AIP-156 singletons, GCP projects/{project}/billingInfo, Runpod myself.clientBalance.

name
string
workspace
string

The workspace that pays, the credential's.

cf. Zitadel resource_owner.

balance
string

Top-ups minus usage, a decimal in the currency's minor unit; negative once running work overdraws it. New work is refused unless it is positive.

currencyCode
string

ISO 4217, such as USD.

ongoingBalance
string

The balance less what running work has used and is not yet charged, as of the last minute: the balance that goes down while runs go on. A decimal in the currency's minor unit.

cf. Lago wallet ongoing_balance_cents.

lastCreditTime
string<date-time>

When credit was last added; unset before the first top-up.

cf. Lago wallet last_balance_sync_at.

Example:

"2023-01-15T01:30:15.01Z"

lastCreditBalance
string

The balance right after credit was last added, a decimal in the currency's minor unit; empty before the first top-up. What was spent since is this minus ongoing_balance.

cf. Orb credit ledger entry ending_balance.

lastCreditSpend
Cost · object[]

What was spent since credit was last added, one per SKU: what was charged since and what running work owes now. Before the first top-up, all of it. The amounts sum to last_credit_balance minus ongoing_balance, an empty last_credit_balance read as zero.

cf. Orb credit ledger entries; Lago wallet consumed_credits.