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

Authorization string

set value to Bearer SECRET_KEY

Body Param

business_id string required

Merchant Business ID

customers array required

This is an array of objects containing the list of customers, their wallet reference and the amount to be withdrawn. e.g: "customers": [ { "wallet_ref": "wal_jh6ckcNW...", "amount": 250 } ]

description number required

Specify the purpose of the withdrawal

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