Transaction Details
To make this request, send an authenticated request to the fetchtrans endpoint.
get
https://api.1app.online/v1/business/fetchtrans
Get details of a transaction
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/fetchtrans?reference=63490b1643370903287' \
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/fetchtrans?reference=63490b1643370903287',
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/fetchtrans?reference=63490b1643370903287',
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/fetchtrans?reference=63490b1643370903287"
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
"message": "Successful",
4
"transtatus": "Completed",
5
"transid": "1000865",
6
"ownerid": "63490",
7
"amount": "300.00",
8
"amount_settled": "292.80",
9
"transfee": "7.20",
10
"prevbal": "5118.75",
11
"newbal": "5411.55",
12
"currency": "NGN",
13
"reference": "63490b1643370903287",
14
"customer_reference": "2910_1643370902",
15
"transaction_token": "cfda35a0d3a970fd47c57eda6c230ba1",
16
"customer_email": "[email protected]",
17
"customer_phone": "",
18
"customer_name": " ",
19
"payment_channel": "rave",
20
"paid_through": "api",
21
"mode": "test",
22
"attempt": 1,
23
"cardtype": "",
24
"country": "",
25
"cardnumber": "",
26
"bankname": "",
27
"errors": 0,
28
"payment_time": "28, Fri. Jan. 2022",
29
"gateway": "Flutterwave",
30
"gatewaylogo": "https://business.1app.online/app/img/flutter.png",
31
"statustext": "Completed",
32
"time_elapsed": "00:58"
33
}
Copied!