vivawallet.wallets for wallet balance visibility and transfers between Viva wallets. The module exposes three methods: retrieveMerchantWallets(), retrieveWallet(), and balanceTransfer(walletId, targetWalletId, options).
Retrieve merchant wallets
CallretrieveMerchantWallets() to retrieve wallets set up under the merchant profile through Viva’s current OAuth-backed endpoint.
walletId, iban, amount, available, currencyCode, and friendlyName.
Retrieve the legacy wallet
CallretrieveWallet() for the older Basic Auth wallet endpoint. This is useful when maintaining an existing integration that still depends on the legacy Viva response shape.
WalletId, Iban, Available, CurrencyCode, and FriendlyName.
Transfer balance between wallets
Move funds from one wallet to another withbalanceTransfer(walletId, targetWalletId, options). Amounts are expressed in the currency’s smallest unit.
walletId is the source wallet and targetWalletId is the destination wallet. Both can be strings or numbers, but they must refer to wallets available to the merchant credentials used by the client.