Listar disputas de MED
curl --request GET \
--url https://gateway.3xpay.co/med-contest/exposes \
--header 'api_key: <api-key>' \
--header 'api_secret: <api-key>'import requests
url = "https://gateway.3xpay.co/med-contest/exposes"
headers = {
"api_key": "<api-key>",
"api_secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {api_key: '<api-key>', api_secret: '<api-key>'}};
fetch('https://gateway.3xpay.co/med-contest/exposes', 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://gateway.3xpay.co/med-contest/exposes",
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>",
"api_secret: <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://gateway.3xpay.co/med-contest/exposes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api_key", "<api-key>")
req.Header.Add("api_secret", "<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://gateway.3xpay.co/med-contest/exposes")
.header("api_key", "<api-key>")
.header("api_secret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway.3xpay.co/med-contest/exposes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api_key"] = '<api-key>'
request["api_secret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"medsContest": [
{
"id": 50231,
"transactionId": "01a51b3e-e17d-45eb-b8a2-e2392b6b1b28",
"order_processor_id": "ORDER-XPTO-99",
"status": "MED",
"external_id": "PARTNER-REF-001",
"created_at": "2026-05-10T13:22:11.000Z",
"updated_at": "2026-05-11T09:14:02.000Z",
"user": {
"name": "Parceiro X"
},
"MedContest": {
"id": 1024,
"transactionId": 50231,
"content": "https://s3.../comprovante.pdf",
"description": "Comprovante de pagamento original.",
"external_med_id": "dispute_8f3a...",
"processor_name": "woovi",
"retry_count": 0,
"last_error": "<string>",
"created_at": "2026-05-12T10:30:00.000Z",
"updated_at": "2026-05-12T10:30:00.000Z"
}
}
],
"total": 1,
"totalPages": 1,
"currentPage": 1,
"nextPage": null,
"prevPage": null,
"pageSize": 20
}{
"error": 404,
"message": "Nenhuma disputa de MED encontrada"
}MED (Contestação de Devolução)
Listar Disputas de MED
Retorna a lista paginada de todas as disputas de MED da conta autenticada.
GET
/
med-contest
/
exposes
Listar disputas de MED
curl --request GET \
--url https://gateway.3xpay.co/med-contest/exposes \
--header 'api_key: <api-key>' \
--header 'api_secret: <api-key>'import requests
url = "https://gateway.3xpay.co/med-contest/exposes"
headers = {
"api_key": "<api-key>",
"api_secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {api_key: '<api-key>', api_secret: '<api-key>'}};
fetch('https://gateway.3xpay.co/med-contest/exposes', 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://gateway.3xpay.co/med-contest/exposes",
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>",
"api_secret: <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://gateway.3xpay.co/med-contest/exposes"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api_key", "<api-key>")
req.Header.Add("api_secret", "<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://gateway.3xpay.co/med-contest/exposes")
.header("api_key", "<api-key>")
.header("api_secret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway.3xpay.co/med-contest/exposes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api_key"] = '<api-key>'
request["api_secret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"medsContest": [
{
"id": 50231,
"transactionId": "01a51b3e-e17d-45eb-b8a2-e2392b6b1b28",
"order_processor_id": "ORDER-XPTO-99",
"status": "MED",
"external_id": "PARTNER-REF-001",
"created_at": "2026-05-10T13:22:11.000Z",
"updated_at": "2026-05-11T09:14:02.000Z",
"user": {
"name": "Parceiro X"
},
"MedContest": {
"id": 1024,
"transactionId": 50231,
"content": "https://s3.../comprovante.pdf",
"description": "Comprovante de pagamento original.",
"external_med_id": "dispute_8f3a...",
"processor_name": "woovi",
"retry_count": 0,
"last_error": "<string>",
"created_at": "2026-05-12T10:30:00.000Z",
"updated_at": "2026-05-12T10:30:00.000Z"
}
}
],
"total": 1,
"totalPages": 1,
"currentPage": 1,
"nextPage": null,
"prevPage": null,
"pageSize": 20
}{
"error": 404,
"message": "Nenhuma disputa de MED encontrada"
}Retorna a lista paginada de todas as disputas de MED da conta autenticada. Aceita filtros por
status, created_at e updated_at.Query Parameters
Página.
Itens por página.
Filtra por status do MED.
Available options:
WAITING_CONTENT, REQUESTED, DEFENSE_SUBMITTED, DEFENSE_FAILED, APPROVED, REJECTED, REFUNDED, CANCELLED Filtra por data de criação (ISO date).
Filtra por data de atualização (ISO date).
⌘I