Class Balance

All Implemented Interfaces:
StripeActiveObject, StripeObjectInterface

public class Balance extends ApiResource
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

  • Constructor Details

    • Balance

      public Balance()
  • Method Details

    • retrieve

      public static Balance retrieve() throws StripeException
      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.
      Throws:
      StripeException
    • retrieve

      public static Balance retrieve(RequestOptions options) throws StripeException
      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.
      Throws:
      StripeException
    • retrieve

      public static Balance retrieve(Map<String,Object> params, RequestOptions options) throws StripeException
      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.
      Throws:
      StripeException
    • retrieve

      public static Balance retrieve(BalanceRetrieveParams params, RequestOptions options) throws StripeException
      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.
      Throws:
      StripeException
    • setResponseGetter

      public void setResponseGetter(StripeResponseGetter responseGetter)
      Amount for FPX.
      Specified by:
      setResponseGetter in interface StripeActiveObject
      Overrides:
      setResponseGetter in class ApiResource
      Parameters:
      responseGetter - the StripeResponseGetter instance to use for making further requests.
    • getAvailable

      public List<Balance.Available> getAvailable()
      Available 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 the source_types property.
    • getConnectReserved

      public List<Balance.ConnectReserved> getConnectReserved()
      Funds held due to negative balances on connected accounts where account.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.
    • getInstantAvailable

      public List<Balance.InstantAvailable> getInstantAvailable()
      Funds that you can pay out using Instant Payouts.
    • getIssuing

      public Balance.Issuing getIssuing()
    • getLivemode

      public Boolean getLivemode()
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • getObject

      public String getObject()
      String representing the object's type. Objects of the same type share the same value.

      Equal to balance.

    • getPending

      public List<Balance.Pending> getPending()
      Funds 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.
    • setAvailable

      public void setAvailable(List<Balance.Available> available)
      Available 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 the source_types property.
    • setConnectReserved

      public void setConnectReserved(List<Balance.ConnectReserved> connectReserved)
      Funds held due to negative balances on connected accounts where account.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.
    • setInstantAvailable

      public void setInstantAvailable(List<Balance.InstantAvailable> instantAvailable)
      Funds that you can pay out using Instant Payouts.
    • setIssuing

      public void setIssuing(Balance.Issuing issuing)
    • setLivemode

      public void setLivemode(Boolean livemode)
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • setObject

      public void setObject(String object)
      String representing the object's type. Objects of the same type share the same value.

      Equal to balance.

    • setPending

      public void setPending(List<Balance.Pending> pending)
      Funds 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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object