Detalhar disputa de MED
curl --request GET \
--url https://gateway.3xpay.co/med-contest/exposes/{medId} \
--header 'api_key: <api-key>' \
--header 'api_secret: <api-key>'import requests
url = "https://gateway.3xpay.co/med-contest/exposes/{medId}"
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/{medId}', 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/{medId}",
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/{medId}"
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/{medId}")
.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/{medId}")
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{
"id": 50231,
"transactionId": "01a51b3e-e17d-45eb-b8a2-e2392b6b1b28",
"status": "MED",
"MedContest": {
"id": 1024,
"transactionId": 50231,
"content": "data:application/pdf;base64,JVBERi0xLj...",
"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"
}
}
MED (Contestação de Devolução)
Detalhar Disputa de MED
Retorna os detalhes da disputa, incluindo o documento de evidência em base64 (quando já tiver sido enviado).
GET
/
med-contest
/
exposes
/
{medId}
Detalhar disputa de MED
curl --request GET \
--url https://gateway.3xpay.co/med-contest/exposes/{medId} \
--header 'api_key: <api-key>' \
--header 'api_secret: <api-key>'import requests
url = "https://gateway.3xpay.co/med-contest/exposes/{medId}"
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/{medId}', 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/{medId}",
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/{medId}"
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/{medId}")
.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/{medId}")
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{
"id": 50231,
"transactionId": "01a51b3e-e17d-45eb-b8a2-e2392b6b1b28",
"status": "MED",
"MedContest": {
"id": 1024,
"transactionId": 50231,
"content": "data:application/pdf;base64,JVBERi0xLj...",
"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"
}
}
Retorna os detalhes da disputa, incluindo o documento de evidência codificado em base64 (quando já tiver sido enviado).
Diferente do endpoint de listagem (que retorna apenas a URL armazenada em
content), aqui o campo MedContest.content vem como data URI em base64 — útil para reprocessar ou exibir o documento sem precisar baixá-lo separadamente.Path Parameters
ID numérico retornado por POST /med-contest/exposes ou listado em GET /med-contest/exposes.
Response
Detalhes da disputa
Transação em disputa com o detalhe do MedContest aninhado. No detalhe, MedContest.content vem como data URI em base64.
⌘I