stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.GetBalance

Description

Contains the different functions to run the operation getBalance

Synopsis

Documentation

getBalance Source #

Arguments

:: forall m. MonadHTTP m 
=> Maybe [Text]

expand: Specifies which fields in the response should be expanded.

-> ClientT m (Response GetBalanceResponse)

Monadic computation which returns the result of the operation

GET /v1/balance

<p>Retrieves the current account balance, based on the authentication that was used to make the request. For a sample request, see <a href="/docs/connect/account-balances#accounting-for-negative-balances">Accounting for negative balances</a>.</p>

data GetBalanceResponse Source #

Represents a response of the operation getBalance.

The response constructor is chosen by the status code of the response. If no case matches (no specific case for the response code, no range case, no default case), GetBalanceResponseError is used.

Constructors

GetBalanceResponseError String

Means either no matching case available or a parse error

GetBalanceResponse200 Balance

Successful response.

GetBalanceResponseDefault Error

Error response.