Skip to content

Stripe: Retrieve balance

Stripe balance.getBalance: arguments, response, policy and SDK examples.

← Balance operations · Get started

Operation stripe.getbalance

Provider route: GET /v1/balance. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/stripe with npm, or alter-sdk-stripe with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { StripeIntegration } from "@alter-ai/stripe";
async function execute(input: Parameters<StripeIntegration["balance"]["getBalance"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new StripeIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.balance.getBalance(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_stripe import StripeIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = StripeIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.balance.get_balance(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectOptionalAdditional keys: not allowed
query.expandarrayOptional
query.expand[]stringEach itemMaximum length: 5000

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Retrieve balance — response body

Referenced models: Retrieve balance — response body

Retrieve balance — response body
FieldTypePresenceDescription and constraints
$objectRootThis is an object representing your Stripe balance. You can retrieve it to see
the balance currently on your Stripe account.

The top-level `available` and `pending` comprise your "payments balance."

Related guide: [Balances and settlement time](https://docs.stripe.com/payments/balances), [Understanding Connect account balances](https://docs.stripe.com/connect/account-balances)
availablearrayRequired within parentAvailable funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://docs.stripe.com/api#transfers) or [Payouts API](https://docs.stripe.com/api#payouts). You can find the available balance for each currency and payment type in the `source_types` property.
available[]ModelEach itemExpand Retrieve balance — response body — pending item
connect_reservedarrayOptionalFunds held due to negative balances on connected accounts where [account.controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. You can find the connect reserve balance for each currency and payment type in the `source_types` property.
connect_reserved[]ModelEach itemExpand Retrieve balance — response body — pending item
instant_availablearrayOptionalFunds that you can pay out using Instant Payouts.
instant_available[]ModelEach itemExpand Retrieve balance — response body — instant available item
issuingModelOptionalExpand Retrieve balance — response body — issuing
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: balance
pendingarrayRequired within parentFunds that aren't available in the balance yet. You can find the pending balance for each currency and each payment type in the `source_types` property.
pending[]ModelEach itemExpand Retrieve balance — response body — pending item
refund_and_dispute_prefundingModelOptionalExpand Retrieve balance — response body — refund and dispute prefunding

Referenced models: Retrieve balance — response body — pending item, Retrieve balance — response body — instant available item, Retrieve balance — response body — issuing, Retrieve balance — response body — refund and dispute prefunding

Retrieve balance — response body — pending item
FieldTypePresenceDescription and constraints
$objectRoot
amountJSONRequired within parent
amount (anyOf 1)integerAlternativeBalance amount.
amount (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
currencystringRequired within parentThree-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
Format: currency
source_typesModelOptionalExpand Retrieve balance — response body — pending item source types

Referenced models: Retrieve balance — response body — pending item source types

Retrieve balance — response body — instant available item
FieldTypePresenceDescription and constraints
$objectRoot
amountJSONRequired within parent
amount (anyOf 1)integerAlternativeBalance amount.
amount (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
currencystringRequired within parentThree-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
Format: currency
net_availablearrayOptionalBreakdown of balance by destination.
net_available[]ModelEach itemExpand Retrieve balance — response body — instant available item net available item
source_typesModelOptionalExpand Retrieve balance — response body — pending item source types

Referenced models: Retrieve balance — response body — pending item source types, Retrieve balance — response body — instant available item net available item

Retrieve balance — response body — issuing
FieldTypePresenceDescription and constraints
$objectRoot
availablearrayRequired within parentFunds that are available for use.
available[]ModelEach itemExpand Retrieve balance — response body — pending item

Referenced models: Retrieve balance — response body — pending item

Retrieve balance — response body — refund and dispute prefunding
FieldTypePresenceDescription and constraints
$objectRoot
availablearrayRequired within parentFunds that are available for use.
available[]ModelEach itemExpand Retrieve balance — response body — pending item
pendingarrayRequired within parentFunds that are pending
pending[]ModelEach itemExpand Retrieve balance — response body — pending item

Referenced models: Retrieve balance — response body — pending item

Retrieve balance — response body — pending item source types
FieldTypePresenceDescription and constraints
$objectRoot
bank_accountJSONOptional
bank_account (anyOf 1)integerAlternativeAmount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
bank_account (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
cardJSONOptional
card (anyOf 1)integerAlternativeAmount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
card (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
fpxJSONOptional
fpx (anyOf 1)integerAlternativeAmount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
fpx (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Retrieve balance — response body — instant available item net available item
FieldTypePresenceDescription and constraints
$objectRoot
amountJSONRequired within parent
amount (anyOf 1)integerAlternativeNet balance amount, subtracting fees from platform-set pricing.
amount (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
destinationstringRequired within parentID of the external account for this net balance (not expandable).
Maximum length: 5000
source_typesModelOptionalExpand Retrieve balance — response body — pending item source types

Referenced models: Retrieve balance — response body — pending item source types

SDK function policy ID: stripe.getbalance. Catalog operation: GetBalance. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Pinned headers: {"Stripe-Version": "2026-09-30.endive"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.