Read the wallet, linked accounts and transactions
Guides

Read the wallet, linked accounts and transactions

All wallet reads live on sdk.wollette. They require a session and a fresh developer proof per request. Reads are safe to retry when retryable is true.

The wallet

val wallet = sdk.wollette.retrieve(provider)
wallet.availableBalance?.value
wallet.details?.accountNumber
wallet.balanceControlSettings?.autoTopupEnabled

Returns WalletAccount: id, availableBalance, minimumBalance, details (account holder, account number, sort code), and balanceControlSettings. The SDK uses the first BaaS account the API returns. Most fields are optional in the API response.

An empty account list throws WALLET_NOT_READY. Check activation progress to continue. A non-empty result does not prove activation is complete: the account is created before PIS. Display missing balance fields as unavailable, not zero.

minimumBalance prefers the nested balance-control value and falls back to the legacy top-level field.

Linked accounts

val accounts = sdk.wollette.linkedAccounts(provider)

Returns CURRENT bank accounts mapped from the consumer's returned AIS consents. The mapper requires a non-blank account ID; it does not filter by consent-completion status. List membership alone does not establish consent or payment readiness. Each LinkedAccount has id, bankName, alias, accountNumber and sortCode. An empty list is valid. The id is what you pass to topUp, payOut and, on Android, pay.

Add another bank account

First recover any interrupted operation with Resume activation after a restart. Then use the dedicated linking method when the consumer chooses Add account:

val result = sdk.walletOnboarding.addAccount(activity, provider)

This starts a new AIS authorisation even if general wallet activation is already complete. The form must return the new consent ID; the SDK confirms it belongs to the consumer and is completed before continuing. Existing-account detection can end the call with Complete without adding a duplicate account. Refresh linkedAccounts to show the actual result.

If PIS is interrupted, the SDK saves the target consent. Use pendingProgress and the targeted resume method when the consumer returns. Do not restart account linking automatically after an uncertain result.

Transactions

Transactions are paged by date range and cursor.

var page = sdk.wollette.transactions.list(from = from, to = to, provider = provider)
render(page.data)
while (page.hasMore) {
    page = sdk.wollette.transactions.list(from, to, page.startingAfter, provider)
    render(page.data)
}
  • from and to are inclusive. from after to is VALIDATION.
  • startingAfter must be a non-negative integer string; pass the value from the previous page.
  • Each WalletTransaction has id, amount, direction (for example debit or credit), originType, reference and createdAt.

Money values

MonetaryAmount carries optional numeric value, currency code and display symbol. Display an absent balance as unavailable and use the returned currency when formatting a value. Follow Money values for field meanings and operation-specific validation. Amount units, rounding/precision and supported currencies still need the backend contract.