Skip to main content

walletBalance

Returns the organization's wallet, creating an empty zero-balance wallet on first access if one does not yet exist (so it never returns null). Use it to read the current balance and currency before charging usage or topping up. Requires the 'view_billing' org permission.

walletBalance(
orgId: BigInt!
): OrgWallet!

Arguments

walletBalance.orgId ● BigInt! non-null scalar

Organization id (BigInt as a decimal string) whose wallet to fetch or create.

Type

OrgWallet object