Search Balances Input

June 5, 2026 ยท View on GitHub

Input structure for the method SearchBalancesAsync

Structure

SearchBalancesInput

Fields

NameTypeTagsDescriptionGetterSetter
AsOfTimeStringOptionalList balances in the response at the date time provided, will return the last refreshed balance in the system when not provided.

Constraints: Minimum Length: 20, Maximum Length: 64, Pattern: ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])[T,t]([0-1][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)([.][0-9]+)?([Zz]|[+-][0-9]{2}:[0-9]{2})$
String getAsOfTime()setAsOfTime(String asOfTime)
CurrencyCodeStringOptionalFilters the transactions in the response by a three-character ISO-4217 currency code for the PayPal transaction currency.

Constraints: Minimum Length: 3, Maximum Length: 3
String getCurrencyCode()setCurrencyCode(String currencyCode)

Example

import com.paypal.sdk.models.SearchBalancesInput;

SearchBalancesInput searchBalancesInput = new SearchBalancesInput.Builder()
    .asOfTime("as_of_time0")
    .currencyCode("currency_code4")
    .build();