Sweep wallet balances

Move money from multiple digital wallets to your business balance.

Use this endpoint to transfer money from multiple digital wallets to your business balance

URI

POST

https://api.tryduplo.com/v1/wallets/multiple-merchant-withdrawal

Parameters

Body Param

Sample request

curl --location --request POST 'https://api.tryduplo.com/v1/wallets/multiple-merchant-withdrawal' \
--header 'Authorization: Bearer SECRET_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
   "business_id": "{YOUR_VALUE}",
   "customers": [
       {
           "wallet_ref": "wal_jh6ckcNWFEcb",
           "amount": 250
       },
       {
           "wallet_ref": "wal_an6fkfNWFEcb",
           "amount": 250
       }
   ],
   "description": "scholl fees"
}'

Duplo Response

{
   "data": {},
   "errors": {},
   "message": "Transaction request successful"
}

Last updated