P2P Wallet Transfer

Transfer fund between two Duplo wallets.

POST
https://api.tryduplo.com/v1/wallets/p2p
Parameter
Field
Type
Description
sender
String
The wallet ref of the source
receiver
String
The wallet ref of the destination
amount
Number
Amount to be sent from sender to receiver
curl --location --request POST 'https://api.duplo.com/wallets/p2p' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer dp_test_P2tH90snfuQB0qlPopnhdgkOpbs' \
--data-raw '{
   "sender": "dp_wallet_drNR8Eyio4DwE4CeXh2wXc",
   "receiver"
: "dp_wallet_2rNR8Eyid4mwE4CeXh2w3x",
   "amount" :"3000"
}'
const duplo = require('duplo')('dp_test_P2tH90snfuQB0qlPopnhdgkOpbs');
const virtualAccount = await duplo.wallets.p2p({
  sender: "dp_wallet_drNR8Eyio4DwE4CeXh2wXc",
  receiver: "dp_wallet_2rNR8Eyid4mwE4CeXh2w3x",
  amount :"3000"
});
$duplo = new \Duplo\DuploClient(
 'dp_test_P2tH90snfuQB0qlPopnhdgkOpbs'
);
$duplo->wallets->p2p(
 [
   'sender'=> 'dp_wallet_drNR8Eyio4DwE4CeXh2wXc',
   'receiver'=> 'dp_wallet_2rNR8Eyid4mwE4CeXh2w3x',
   'amount' => '3000'
 ]
);
200 OK
{
   "success": true,
   "message": "P2P transfer successfully",
   "data": {
       "transaction_ref": "dp_trans_prN28Eyio4DwE4CeXh2ddk45",
       "sender": "dp_wallet_drNR8Eyio4DwE4CeXh2wXc",
       "receiver": "dp_wallet_2rNR8Eyid4mwE4CeXh2w3x",
       "sender_available_balance" :"200",
       "receiver_available_balance" :"3500",
       "amount" :"3000",
       "status" :"success"
   }
}
Need Support?

Helpful resources while you’re building or for that tricky problem you might be having.

Go to Help Center
Did this page help you?
Yes
No