Payouts / Settlements
To make this request, send an authenticated request to the payouts endpoint.
get
https://api.1app.online/v1/business/payouts
Get a list of upcoming payouts
Take a look at how you might do this:
cURL
NodeJs
PHP - cURL
Python
1
curl --location --request GET 'https://api.1app.online/v1/business/payouts' \
2
--header 'Authorization: Bearer YOUR_SECRET_KEY'
Copied!
1
var https = require('follow-redirects').https;
2
var fs = require('fs');
3
4
var options = {
5
'method': 'GET',
6
'hostname': 'api.1app.online',
7
'path': '/v1/business/payouts',
8
'headers': {
9
'Authorization': 'Bearer YOUR_SECRET_KEY'
10
},
11
'maxRedirects': 20
12
};
13
14
var req = https.request(options, function (res) {
15
var chunks = [];
16
17
res.on("data", function (chunk) {
18
chunks.push(chunk);
19
});
20
21
res.on("end", function (chunk) {
22
var body = Buffer.concat(chunks);
23
console.log(body.toString());
24
});
25
26
res.on("error", function (error) {
27
console.error(error);
28
});
29
});
30
31
req.end();
Copied!
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://api.1app.online/v1/business/payouts',
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 YOUR_SECRET_KEY'
16
),
17
));
18
19
$response = curl_exec($curl);
20
21
curl_close($curl);
22
echo $response;
23
Copied!
1
import requests
2
3
url = "https://api.1app.online/v1/business/payouts"
4
5
payload={}
6
headers = {
7
'Authorization': 'Bearer YOUR_SECRET_KEY'
8
}
9
10
response = requests.request("GET", url, headers=headers, data=payload)
11
12
print(response.text)
13
Copied!

Sample response

1
{
2
"status": true,
3
"totalpayout": 7,
4
"message": "Payout retrieved",
5
"data": [
6
{
7
"payoutid": "31",
8
"busnessid": "7",
9
"amount": "20",
10
"settled": "20.00",
11
"payoutref": "76BY14H704301C4R",
12
"total": "2",
13
"payout_date": "28, January 2022",
14
"statuscode": "2",
15
"bizname": "Testing",
16
"payoutstatus": "Paid"
17
},
18
{
19
"payoutid": "28",
20
"busnessid": "7",
21
"amount": "100",
22
"settled": "100.00",
23
"payoutref": "7636AS0KD04T1145",
24
"total": "1",
25
"payout_date": "24, January 2022",
26
"statuscode": "2",
27
"bizname": "Testing",
28
"payoutstatus": "Paid"
29
},
30
{
31
"payoutid": "22",
32
"busnessid": "7",
33
"amount": "40",
34
"settled": "40.00",
35
"payoutref": "759604BO4ASL2180",
36
"total": "4",
37
"payout_date": "21, January 2022",
38
"statuscode": "2",
39
"bizname": "Testing",
40
"payoutstatus": "Paid"
41
},
42
{
43
"payoutid": "18",
44
"busnessid": "7",
45
"amount": "10",
46
"settled": "10.00",
47
"payoutref": "76JH0W4019J051J4",
48
"total": "1",
49
"payout_date": "30, December 2021",
50
"statuscode": "2",
51
"bizname": "Testing",
52
"payoutstatus": "Paid"
53
},
54
{
55
"payoutid": "6",
56
"busnessid": "7",
57
"amount": "100",
58
"settled": "100.00",
59
"payoutref": "7J30T5731R1X967K",
60
"total": "1",
61
"payout_date": "24, November 2021",
62
"statuscode": "2",
63
"bizname": "Testing",
64
"payoutstatus": "Paid"
65
},
66
{
67
"payoutid": "5",
68
"busnessid": "7",
69
"amount": "900",
70
"settled": "900.00",
71
"payoutref": "7N16W9GL6577Z834",
72
"total": "1",
73
"payout_date": "24, November 2021",
74
"statuscode": "2",
75
"bizname": "Testing",
76
"payoutstatus": "Paid"
77
},
78
{
79
"payoutid": "4",
80
"busnessid": "7",
81
"amount": "100",
82
"settled": "100.00",
83
"payoutref": "7Q6J3Q400173PP78",
84
"total": "1",
85
"payout_date": "23, November 2021",
86
"statuscode": "2",
87
"bizname": "Testing",
88
"payoutstatus": "Paid"
89
}
90
]
91
}
Copied!