get https://api.ravepay.co/v2/chargebacks
This allows you list all chargebacks using your merchant secret key
Sample Implementations
var request = require('request');
var options = {
'method': 'GET',
'url': '{{BASE_API_URL}}/v2/chargebacks?seckey=FLWSECK-e*******************-X',
'headers': {
'Content-Type': 'application/json'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "{{BASE_API_URL}}/v2/chargebacks?seckey=FLWSECK-e*******************-",
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(
"Content-Type: application/json"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
require "uri"
require "net/http"
url = URI("{{BASE_API_URL}}/v2/chargebacks?seckey=FLWSECK-e*******************-")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["Content-Type"] = "application/json"
response = http.request(request)
puts response.read_body
curl --location --request GET '{{BASE_API_URL}}/v2/chargebacks?seckey=FLWSECK-e*******************-X' \
--header 'Content-Type: application/json'