Get Dispute
Endpoint for getting a Dispute.
info
Please be aware that this endpoint requires a View Transactions API Key.
GET /api/v1/groups/{group_id}/revere_pay/{linked_account_id}/disputes/{id}
Response
| Code | Description | 
|---|---|
| 200 | Success | 
| 400 | Bad Request / Validation error | 
| 500 | Internal Error | 
Example Usage
- JavaScript
- Python
- Go
plans.js
var headers = new Headers();
headers.append('Authorization', 'API_KEY');
var requestOptions = {
	method: 'GET',
	headers: headers,
	redirect: 'follow'
};
const group_id = '';
const linked_account_id = '';
const id = '';
fetch(
	`https://api.reverepayments.dev/api/v1/groups/${group_id}/revere_pay/${linked_account_id}/disputes/${id}`,
	requestOptions
)
	.then((response) => response.text())
	.then((result) => console.log(result))
	.catch((error) => console.log('error', error));
plans.py
import requests
group_id = ""
linked_account_id = ""
id = ""
url = "https://api.reverepayments.dev/api/v1/groups/"+group_id+"/revere_pay/"+linked_account_id+"/disputes/"+id
headers = {
  'Authorization': 'API_KEY'
}
response = requests.request("GET", url, headers=headers)
print(response.text)
plans.go
package main
import (
	"bytes"
	"encoding/json"
	"fmt"
	"io"
	"net/http"
)
func main() {
	const group_id = ""
	const linked_account_id = ""
	const id = ""
	url := "https://api.reverepayments.dev/api/v1/groups/"+group_id+"/revere_pay/"+linked_account_id+"/disputes/"+id
	client := &http.Client{}
	req, _ := http.NewRequest("GET", url, nil)
	req.Header.Add("Authorization", "API_KEY")
	res, _ := client.Do(req)
	defer res.Body.Close()
	bytes, err := io.ReadAll(res.Body)
	if err != nil {
		fmt.Println(err.Error())
		return
	}
	fmt.Println(string(bytes))
}
Example Success Response
{
	"id": "58a9771d-8ba1-4092-b47b-3cea979ef9c8",
	"name": "John Doe",
	"transaction_id": "83cc5905-4f1a-4667-97f2-a280c2ebf218",
	"amount": 2785,
	"phase": "chargeback",
	"status": "expired",
	"respond_by": "2024-08-12T12:30:01Z",
	"created_at": "2024-08-12T11:30:01Z",
	"updated_at": "2024-08-12T17:00:31.326991Z"
}