Comment on page
Get recipients summary
Returns a summary of merchant recipient
GET
https://api.tryduplo.com/v1/recipients/summary?business_id=986acd67-b306-4642-87aa-99ba512b2601
Authorization
string | set value to Bearer SECRET_KEY |
business_id
string required | Bussiness ID |
cURL
Node
PHP
curl --location --request GET 'https://api.tryduplo.com/v1/recipients/summary?business_id=986a67-b306-4642-87aa-99ba512b2601' \
--header 'Authorization: Bearer dp_live_856879df3e6ecdb14a918e24bba6d480e0564a4eabfdba938fc23b820ac905e54bac25a71dbcdef66c97b8c72ca6cf03a576857261f2f16f5335ca5024620b14268823a7d78922cfdd97cefc61050139fd92a7a0c5840e016050552ccadbbec642d2ff8d35a09225c7ec4fd1e347b'
1
var axios = require('axios');
2
3
var config = {
4
method: 'get',
5
url: 'https://api.tryduplo.com/v1/recipients/summary?business_id=986acd67-b306-4642-87aa-99b2b2601',
6
headers: {
7
'Authorization': 'Bearer dp_live_856879df3e6ecdb14a918e24bba6d480e0564a4eabfdba938fc23b820ac905e54bac25a71dbcdef66c97b8c72ca7e176857261f2f16f5335ca5024620b14268823a7d78922cfdd97cefc61050139fd92a7a0c5840e016050552ccadbbec642d2ff8d35a09225c7ec4fd1e347b'
8
}
9
};
10
11
axios(config)
12
.then(function (response) {
13
console.log(JSON.stringify(response.data));
14
})
15
.catch(function (error) {
16
console.log(error);
17
});
18
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://api.tryduplo.com/v1/recipients/summary?business_id=986acd67-b306-4642-87aa-99bab2601',
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 => 'GET',
14
CURLOPT_HTTPHEADER => array(
15
'Authorization: Bearer dp_live_856879df3e6ecdb14a918e24bba6d480e0564a4eabfdba938fc23b820ac905e54bac25a71dbcdef66c97b8c72ca7e16cf03a576857261f2f16f5335ca5024620b14268823a7d78922cfdd97cefc61050139fd92a70e016050552ccadbbec642d2ff8d35a09225c7ec4fd1e347b'
16
),
17
));
18
19
$response = curl_exec($curl);
20
21
curl_close($curl);
22
echo $response;
23
{
"data": {
"total_number_of_payouts": 14,
"total_payout_sum": 2680.45,
"total_payout_recipients": 2
},
"errors": {},
"message": "Recipient summary data fetched successfully"
}
Last modified 2mo ago