Transactions List
To make this request, send an authenticated request to the transactions endpoint.
get
https://api.1app.online/v1/business/transactions
Get a list of your transactions
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/transactions' \
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/transactions',
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/transactions',
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/transactions"
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
"transtotal": 28,
4
"message": "Successful",
5
"data": [
6
{
7
"transtatus": "1",
8
"transid": "1000822",
9
"ownerid": "63490",
10
"amount": "600.00",
11
"amount_settled": "585.00",
12
"transfee": "15.00",
13
"prevbal": "1170.00",
14
"newbal": "1755.00",
15
"currency": "NGN",
16
"reference": "63490b1643147009297",
17
"customer_reference": "72_1643147008",
18
"transaction_token": "57f6a2fdff12e6eedce224573fcf549a",
19
"customer_email": "[email protected]",
20
"customer_name": " ",
21
"payment_channel": "paystack",
22
"paid_through": "api",
23
"keytype": "test",
24
"payment_time": "25 Jan 2022 10:43 pm",
25
"gateway": "Paystack",
26
"gatewaylogo": "https://business.1app.online/app/img/paystack.png"
27
},
28
{
29
"transtatus": "1",
30
"transid": "1000821",
31
"ownerid": "63490",
32
"amount": "500.00",
33
"amount_settled": "487.50",
34
"transfee": "12.50",
35
"prevbal": "682.50",
36
"newbal": "1170.00",
37
"currency": "NGN",
38
"reference": "63490b1643145404317",
39
"customer_reference": "71_1643145404",
40
"transaction_token": "82e57f719630a5884cd905ba040ba24f",
41
"customer_email": "[email protected]",
42
"customer_name": " ",
43
"payment_channel": "paystack",
44
"paid_through": "api",
45
"keytype": "test",
46
"payment_time": "25 Jan 2022 10:16 pm",
47
"gateway": "Paystack",
48
"gatewaylogo": "https://business.1app.online/app/img/paystack.png"
49
},
50
{
51
"transtatus": "1",
52
"transid": "1000733",
53
"ownerid": "63490",
54
"amount": "400.00",
55
"amount_settled": "390.00",
56
"transfee": "10.00",
57
"prevbal": "292.50",
58
"newbal": "682.50",
59
"currency": "NGN",
60
"reference": "63490b1642785755761",
61
"customer_reference": "69_1642785754",
62
"transaction_token": "c8cddd37b88065a22a053d7fdbe65383",
63
"customer_email": "[email protected]",
64
"customer_name": " ",
65
"payment_channel": "paystack",
66
"paid_through": "api",
67
"keytype": "test",
68
"payment_time": "21 Jan 2022 06:22 pm",
69
"gateway": "Paystack",
70
"gatewaylogo": "https://business.1app.online/app/img/paystack.png"
71
},
72
{
73
"transtatus": "1",
74
"transid": "1000730",
75
"ownerid": "63490",
76
"amount": "300.00",
77
"amount_settled": "292.50",
78
"transfee": "7.50",
79
"prevbal": "0.00",
80
"newbal": "292.50",
81
"currency": "NGN",
82
"reference": "63490b1642783606583",
83
"customer_reference": "68_1642783606",
84
"transaction_token": "ae9b29fc93be32684f5cbde8d2c5e6c9",
85
"customer_email": "[email protected]",
86
"customer_name": " ",
87
"payment_channel": "paystack",
88
"paid_through": "api",
89
"keytype": "test",
90
"payment_time": "21 Jan 2022 05:46 pm",
91
"gateway": "Paystack",
92
"gatewaylogo": "https://business.1app.online/app/img/paystack.png"
93
}
94
]
95
}
Copied!