Transfer between wallets
Move money between two digital wallets
URI
POST
https://api.tryduplo.com/v1/wallets/transfer-p2p
Parameters
Header
Authorization
string
set value to Bearer SECRET_KEY
Body Param
business_id
string
required
Merchant Business ID
sender_ref
string
required
Wallet reference of the sender wallet
receiver_ref
string
required
Wallet reference of the receiver wallet
amount
number
required
Amount to be transfered
description
string
required
Specify the purpose of the transaction
Sample request
curl --location --request POST 'https://api.tryduplo.com/v1/wallets/transfer-p2p' \
--header 'Authorization: Bearer SECRET_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"business_id": "{YOUR_VALUE}",
"amount": 4000,
"sender_ref": "wal_jh6ckcNWFEcb",
"receiver_ref": "wal_QQmPOsi4VoTc",
"description" :"David salary"
}'
Duplo Response
{
"data": {},
"errors": {},
"message": "Transaction request successful"
}
Last updated
Was this helpful?