Fetch Disputes
To make this request, send an authenticated request to the disputes endpoint.
Fetch disputes
GET
https://api.oneappgo.com/v1/business/disputes
Take a look at how you might do this:
curl --location --request GET 'https://api.oneappgo.com/v1/business/disputes' \
--header 'Authorization: Bearer YOUR_SECRET_KEY
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'GET',
'hostname': 'api.oneappgo.com',
'path': '/v1/business/disputes',
'headers': {
'Authorization': 'Bearer YOUR_SECRET_KEY'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.oneappgo.com/v1/business/disputes',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer YOUR_SECRET_KEY'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import requests
url = "https://api.oneappgo.com/v1/business/disputes"
payload={}
headers = {
'Authorization': 'Bearer YOUR_SECRET_KEY'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
Sample response
{
"status": true,
"message": "Dispute retrieved",
"disputecount": 3,
"data": [
{
"disputeid": "5",
"busid": "7",
"transref": "83810B1637657021448",
"amount": "100.00",
"customer": "example@gmail.com",
"gateway": "transfer",
"type": "chargeback",
"logged_date": "1639999861",
"duedate": "25 Dec 2021 12:00 am",
"statuscode": "0",
"statustext": "Declined"
},
{
"disputeid": "4",
"busid": "7",
"transref": "83810B1637750693902",
"amount": "100.00",
"customer": "example2@gmail.com",
"gateway": "transfer",
"type": "fraud",
"logged_date": "1639999843",
"duedate": "22 Dec 2021 12:00 am",
"statuscode": "1",
"statustext": "Awaiting Response"
},
{
"disputeid": "3",
"busid": "7",
"transref": "83810B1637749504184",
"amount": "900.00",
"customer": "finance@obounce.net",
"gateway": "transfer",
"type": "chargeback",
"logged_date": "1639999825",
"duedate": "23 Dec 2021 12:00 am",
"statuscode": "0",
"statustext": "Declined"
}
]
}
Last updated