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?.autoTopupEnabledlet wallet = try await sdk.wollette.retrieve(provider: provider)
wallet.availableBalance?.value
wallet.details?.accountNumber
wallet.balanceControlSettings?.autoTopupEnabledReturns 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)let accounts = try await sdk.wollette.linkedAccounts(provider: 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)let result = try await sdk.addWalletAccount(
presenting: viewController, provider: 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)
}var page = try await sdk.wollette.transactions.list(from: from, to: to, provider: provider)
render(page.data)
while page.hasMore {
page = try await sdk.wollette.transactions.list(from: from, to: to, startingAfter: page.startingAfter, provider: provider)
render(page.data)
}fromandtoare inclusive.fromaftertoisVALIDATION.startingAftermust be a non-negative integer string; pass the value from the previous page.- Each
WalletTransactionhasid,amount,direction(for exampledebitorcredit),originType,referenceandcreatedAt.
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.