marketplace.transfers to distribute funds from the platform account to connected accounts. The public methods are sendFunds() and createTransferReversal().
Send funds to a connected account
Callmarketplace.transfers.sendFunds(transferData) with the connected account ID and amount to transfer. Use the MPTransfersDatas type to keep the payload aligned with the SDK.
transactionId is optional in MPTransfersDatas. When it is omitted, or when the transaction is already settled, VivaWallet can execute an instant balance transfer if the platform account has enough available balance.Create a transfer reversal
A transfer reversal moves funds back from a connected account to the platform account. Use this when you need to reverse a seller payout because of a refund, dispute, or operational adjustment.createTransferReversal() takes the original transfer ID as the first argument and an optional options object as the second argument.
amount smaller than the original transfer value.
Cancel a Marketplace transaction
Usemarketplace.transactions.cancelTransaction(transactionId, refundOptions) to cancel or refund a Marketplace transaction. This method is separate from transfer reversal: transaction cancellation handles the payment transaction, while transfer reversal handles funds that were already sent to a connected account.
reverseTransfers is true, VivaWallet can return the proportional connected-account funds to the platform account as part of the refund flow. Use createTransferReversal() manually when you need a standalone transfer reversal.