Get a dispute by its id
curl --request GET \
--url https://api-dev.rain.xyz/v1/issuing/disputes/{disputeId} \
--header 'Api-Key: <api-key>'import requests
url = "https://api-dev.rain.xyz/v1/issuing/disputes/{disputeId}"
headers = {"Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Api-Key': '<api-key>'}};
fetch('https://api-dev.rain.xyz/v1/issuing/disputes/{disputeId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-dev.rain.xyz/v1/issuing/disputes/{disputeId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-dev.rain.xyz/v1/issuing/disputes/{disputeId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-dev.rain.xyz/v1/issuing/disputes/{disputeId}")
.header("Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-dev.rain.xyz/v1/issuing/disputes/{disputeId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"disputeAmount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"disputeType": "fraud",
"textEvidence": "<string>",
"resolvedAt": "2023-11-07T05:31:56Z",
"transaction": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"cardholderUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cardholderFirstName": "<string>",
"cardholderLastName": "<string>",
"merchantName": "<string>",
"postedAt": "2023-11-07T05:31:56Z"
},
"hasFileEvidence": true,
"attachmentCount": 1
}Disputes
Get a dispute by its id
GET
/
issuing
/
disputes
/
{disputeId}
Get a dispute by its id
curl --request GET \
--url https://api-dev.rain.xyz/v1/issuing/disputes/{disputeId} \
--header 'Api-Key: <api-key>'import requests
url = "https://api-dev.rain.xyz/v1/issuing/disputes/{disputeId}"
headers = {"Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Api-Key': '<api-key>'}};
fetch('https://api-dev.rain.xyz/v1/issuing/disputes/{disputeId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-dev.rain.xyz/v1/issuing/disputes/{disputeId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-dev.rain.xyz/v1/issuing/disputes/{disputeId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-dev.rain.xyz/v1/issuing/disputes/{disputeId}")
.header("Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-dev.rain.xyz/v1/issuing/disputes/{disputeId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"disputeAmount": 123,
"createdAt": "2023-11-07T05:31:56Z",
"disputeType": "fraud",
"textEvidence": "<string>",
"resolvedAt": "2023-11-07T05:31:56Z",
"transaction": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"cardholderUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cardholderFirstName": "<string>",
"cardholderLastName": "<string>",
"merchantName": "<string>",
"postedAt": "2023-11-07T05:31:56Z"
},
"hasFileEvidence": true,
"attachmentCount": 1
}Authorizations
Path Parameters
Id of the dispute to get
Response
Successful operation
The dispute's unique identifier
The transaction's unique identifier
The status of the dispute
Available options:
pending, inReview, accepted, rejected, canceled, resolvedByMerchant Disputed amount in cents
The time at which the dispute was created
The type of dispute
Available options:
fraud, creditNotProcessed, serviceNotReceived, merchandiseIssue, other The textual evidence for the dispute
Maximum string length:
65535The time at which the dispute was resolved
Details of the transaction associated with the dispute
Show child attributes
Show child attributes
Indicates whether file evidence has been uploaded for the dispute
The number of attachments uploaded for the dispute
Required range:
x >= 0