Search…
Verify account number
Verify the account number of the payout recipient

URI

POST
https://api.tryduplo.com/v1/merchants/utilities/banks/verify

Parameters

Authorization string
set value to Bearer SECRET_KEY

Body Param

account_number string require
The bank account number you want to verify
bank_code string require
The bank code. you can get the bank code here

Sample request

cURL
Node
PHP
curl --location --request POST 'https://api.tryduplo.com/v1/merchants/utilities/banks/verify' \
--header 'Authorization: Bearer SECRET_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"account_number": "0694002924",
"bank_code": "044"
}'
1
var axios = require('axios');
2
var data = JSON.stringify({
3
"account_number": "0694002924",
4
"bank_code": "044"
5
});
6
7
var config = {
8
method: 'post',
9
url: 'https://api.tryduplo.com/v1/merchants/utilities/banks/verify',
10
headers: {
11
'Authorization': 'Bearer SECRET_KEY',
12
'Content-Type': 'application/json'
13
},
14
data : data
15
};
16
17
axios(config)
18
.then(function (response) {
19
console.log(JSON.stringify(response.data));
20
})
21
.catch(function (error) {
22
console.log(error);
23
});
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://api.tryduplo.com/v1/merchants/utilities/banks/verify',
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
"account_number": "0694002924",
16
"bank_code": "044"
17
}',
18
CURLOPT_HTTPHEADER => array(
19
'Authorization: Bearer SECRET_KEY',
20
'Content-Type: application/json'
21
),
22
));
23
24
$response = curl_exec($curl);
25
26
curl_close($curl);
27
echo $response;

Duplo Response

{
"data": {
"account_number": "0694002924",
"account_name": "DAVID DANIEL IGBIGBI",
"bank_id": 1
},
"errors": {},
"message": "Request successful"
}
Copy link
Outline
URI
Parameters
Sample request
Duplo Response