View Source Stripe.Balance (stripity_stripe v3.2.0)
This is an object representing your Stripe balance. You can retrieve it to see the balance currently on your Stripe account.
You can also retrieve the balance history, which contains a list of transactions that contributed to the balance (charges, payouts, and so forth).
The available and pending amounts for each currency are broken down further by payment source types.
Related guide: Understanding Connect account balances
Summary
Functions
Retrieves the current account balance, based on the authentication that was used to make the request. For a sample request, see Accounting for negative balances.
Types
@type t() :: %Stripe.Balance{ available: term(), connect_reserved: term(), instant_available: term(), issuing: term(), livemode: boolean(), object: binary(), pending: term() }
The balance type.
availableAvailable funds that you can transfer or pay out automatically by Stripe or explicitly through the Transfers API or Payouts API. You can find the available balance for each currency and payment type in thesource_typesproperty.connect_reservedFunds held due to negative balances on connected Custom accounts. You can find the connect reserve balance for each currency and payment type in thesource_typesproperty.instant_availableFunds that you can pay out using Instant Payouts.issuinglivemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.objectString representing the object's type. Objects of the same type share the same value.pendingFunds that aren't available in the balance yet. You can find the pending balance for each currency and each payment type in thesource_typesproperty.
Functions
@spec retrieve(params :: %{optional(:expand) => [binary()]}, opts :: Keyword.t()) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Retrieves the current account balance, based on the authentication that was used to make the request. For a sample request, see Accounting for negative balances.
#### Details * Method: `get` * Path: `/v1/balance`