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_KEYvar 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();Sample response
{
"status": true,
"message": "Dispute retrieved",
"disputecount": 3,
"data": [
{
"disputeid": "5",
"busid": "7",
"transref": "83810B1637657021448",
"amount": "100.00",
"customer": "[email protected]",
"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": "[email protected]",
"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": "[email protected]",
"gateway": "transfer",
"type": "chargeback",
"logged_date": "1639999825",
"duedate": "23 Dec 2021 12:00 am",
"statuscode": "0",
"statustext": "Declined"
}
]
}Last updated
Was this helpful?