Search…
Bulk payout
Bulk payout to your recipients

URI

POST
https://api.tryduplo.com/v1/recipients/bulk-recipients

Parameters

Authorization string
set value to Bearer SECRET_KEY

Body Param

business_id string require
Merchant business ID.
type string require
Bulk recipient format options [JSON, CSV], can only be JSON when using the api.
title string require
Title for the payments.
bulk_recipients string require
List of recipients in the following format: [
{
'bank_code': '022',
'account_name': 'John Doe',
'email': '[email protected]',
'account_number': '01234567890',
'amount': '1000',
'date': '2022-09-02' 'frequency': 'Never'
'description': 'payment description'
} ]

Sample request

cURL
Node
PHP
curl --location --request POST 'https://api.tryduplo.com/v1/recipients/bulk-recipients' \
--header 'Authorization: Bearer SECRET_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"business_id":"2e5071-59cb-4057-a14b-d49a3c90ef",
"type":"json",
"title":"Salary payments",
"bulk_recipients":"[
{
'bank_code': '022',
'account_name': 'John Doe',
'email': '[email protected]',
'account_number': '01234567890',
'amount': '1000',
'date': '2022-09-02'
'frequency': 'Never'
'description': 'payment description'
}
]"
}'
1
var axios = require('axios');
2
var data = JSON.stringify({
3
"business_id":"2e5071-59cb-4057-a14b-d49a3c90ef",
4
"type":"json",
5
"title":"Salary payments",
6
"bulk_recipients":"[
7
{
8
'bank_code': '022',
9
'account_name': 'John Doe',
10
'email': '[email protected]',
11
'account_number': '01234567890',
12
'amount': '1000',
13
'date': '2022-09-02'
14
'frequency': 'Never'
15
'description': 'payment description'
16
}
17
]"
18
});
19
20
var config = {
21
method: 'post',
22
url: 'https://api.tryduplo.com/v1/recipients/bulk-recipients',
23
headers: {
24
'Authorization': 'Bearer SECRET_KEY',
25
'Content-Type': 'application/json'
26
},
27
data : data
28
};
29
30
axios(config)
31
.then(function (response) {
32
console.log(JSON.stringify(response.data));
33
})
34
.catch(function (error) {
35
console.log(error);
36
});
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://api.tryduplo.com/v1/recipients/bulk-recipients',
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
"business_id":"2e5071-59cb-4057-a14b-d49a3c90ef",
16
"type":"json",
17
"title":"Salary payments",
18
"bulk_recipients":"[
19
{
20
'bank_code': '022',
21
'account_name': 'John Doe',
22
'email': '[email protected].com',
23
'account_number': '01234567890',
24
'amount': '1000',
25
'date': '2022-09-02'
26
'frequency': 'Never'
27
'description': 'payment description'
28
}
29
]"
30
}',
31
CURLOPT_HTTPHEADER => array(
32
'Authorization: Bearer SECRET_KEY',
33
'Content-Type: application/json'
34
),
35
));
36
37
$response = curl_exec($curl);
38
39
curl_close($curl);
40
echo $response;

Duplo Response

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