Search…
Initiate a payout
Send money to recipient

URI

POST
https://api.tryduplo.com/v1/wallets/transfer

Parameters

Authorization string
set value to Bearer SECRET_KEY

Body Param

recipient_bank_code string require
The bank code of the recipient bank
recipient_account_number string require
The bank account number of the recipient
amount number require
The amount to be transfered. a minimum of 200 naira
description string require
Specifiy the reason for the transaction
business_id string require
Merchant business ID

Sample request

cURL
Node
PHP
curl --location --request POST 'https://api.tryduplo.com/v1/wallets/transfer' \
--header 'Authorization: Bearer SECRET_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"recipient_bank_code": "044",
"recipient_account_number": "0694002924",
"amount": "200",
"description": "chop money",
"business_id":"2e5071-59cb-4057-a14b-d49a3c90ef"
}'
1
var axios = require('axios');
2
var data = JSON.stringify({
3
"recipient_bank_code": "044",
4
"recipient_account_number": "0694002924",
5
"amount": "200",
6
"description": "chop money",
7
"business_id": "2e5071-59cb-4057-a14b-d49a3c90ef"
8
});
9
10
var config = {
11
method: 'post',
12
url: 'https://api.tryduplo.com/v1/wallets/transfer',
13
headers: {
14
'Authorization': 'Bearer SECRET_KEY',
15
'Content-Type': 'application/json'
16
},
17
data : data
18
};
19
20
axios(config)
21
.then(function (response) {
22
console.log(JSON.stringify(response.data));
23
})
24
.catch(function (error) {
25
console.log(error);
26
});
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://api.tryduplo.com/v1/wallets/transfer',
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => '',
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => 'POST',
14
CURLOPT_POSTFIELDS =>'{
15
"recipient_bank_code": "044",
16
"recipient_account_number": "0694002924",
17
"amount": "200",
18
"description": "chop money",
19
"business_id":"2e5071-59cb-4057-a14b-d49a3c90ef"
20
}',
21
CURLOPT_HTTPHEADER => array(
22
'Authorization: Bearer SECRET_KEY',
23
'Content-Type: application/json'
24
),
25
));
26
27
$response = curl_exec($curl);
28
29
curl_close($curl);
30
echo $response;

Duplo Response

{
"data": {},
"errors": {},
"message": "Transaction request successful"
}
Copy link
Outline
URI
Parameters
Sample request
Duplo Response