Listar Disputas
curl --request GET \
--url https://api.example.com/v1/disputes \
--header 'x-api-key: <x-api-key>'import requests
url = "https://api.example.com/v1/disputes"
headers = {"x-api-key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
fetch('https://api.example.com/v1/disputes', 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.example.com/v1/disputes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <x-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.example.com/v1/disputes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-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.example.com/v1/disputes")
.header("x-api-key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/disputes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"status": true,
"data": [
{}
],
"data[].id": "<string>",
"data[].reason": "<string>",
"data[].status": "<string>",
"data[].transactionId": "<string>",
"data[].createdAt": "<string>",
"pagination.total": 123,
"pagination.hasNext": true
}Listar Disputas
Listar suas disputas
GET
/
v1
/
disputes
Listar Disputas
curl --request GET \
--url https://api.example.com/v1/disputes \
--header 'x-api-key: <x-api-key>'import requests
url = "https://api.example.com/v1/disputes"
headers = {"x-api-key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
fetch('https://api.example.com/v1/disputes', 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.example.com/v1/disputes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <x-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.example.com/v1/disputes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-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.example.com/v1/disputes")
.header("x-api-key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/disputes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"status": true,
"data": [
{}
],
"data[].id": "<string>",
"data[].reason": "<string>",
"data[].status": "<string>",
"data[].transactionId": "<string>",
"data[].createdAt": "<string>",
"pagination.total": 123,
"pagination.hasNext": true
}Retorna a lista paginada das suas disputas. Disputas são contestações abertas sobre transações: chargebacks, infrações PIX, entre outros.
string
required
Sua API Key (
sk_live_...). Veja Autenticacao.number
default:"10"
Número de registros por página. Mínimo: 1. Máximo: 100.
number
default:"0"
Número de registros a pular (offset).
Resposta
boolean
true quando a lista é retornada.array
Array de disputas.
string
Identificador único da disputa.
string
Motivo da disputa.
string
Status atual da disputa. Valores:
OPEN, UNDER_REVIEW, RESOLVED, REJECTED.Novos valores podem ser adicionados a este campo. Trate valores
desconhecidos como fallback. Não faça switch exaustivo.
string
ID da transação contestada.
string
Data/hora de abertura da disputa (ISO 8601).
integer
Total de disputas que correspondem ao filtro.
boolean
Indica se existe próxima página.
curl -X GET "https://api.linkagateway.com/v1/disputes?take=10&skip=0" \
-H "x-api-key: <API_KEY>"
const response = await fetch('https://api.linkagateway.com/v1/disputes?take=10&skip=0', {
headers: { 'x-api-key': '<API_KEY>' }
});
const data = await response.json();
const response = await fetch('https://api.linkagateway.com/v1/disputes?take=10&skip=0', {
headers: { 'x-api-key': '<API_KEY>' }
});
const data: { status: boolean; data: Dispute[]; pagination: Pagination } = await response.json();
import requests
response = requests.get(
'https://api.linkagateway.com/v1/disputes',
params={'take': 10, 'skip': 0},
headers={'x-api-key': '<API_KEY>'}
)
data = response.json()
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.linkagateway.com/v1/disputes?take=10&skip=0", nil)
req.Header.Set("x-api-key", "<API_KEY>")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}
Exemplo de resposta
{
"status": true,
"data": [
{
"id": "dispute-uuid-1111",
"reason": "Pagamento duplicado",
"status": "OPEN",
"transactionId": "tx-uuid-2222",
"createdAt": "2026-03-06T12:00:00.000Z"
}
],
"pagination": {
"total": 1,
"page": 1,
"totalPages": 1,
"hasNext": false,
"hasPrevious": false,
"take": 10,
"skip": 0
}
}
Was this page helpful?