curl --request POST \
--url https://gateway.3xpay.co/med-contest/exposes \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--header 'api_secret: <api-key>' \
--data '
{
"transaction_id": "01a51b3e-e17d-45eb-b8a2-e2392b6b1b28"
}
'import requests
url = "https://gateway.3xpay.co/med-contest/exposes"
payload = { "transaction_id": "01a51b3e-e17d-45eb-b8a2-e2392b6b1b28" }
headers = {
"api_key": "<api-key>",
"api_secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
api_key: '<api-key>',
api_secret: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({transaction_id: '01a51b3e-e17d-45eb-b8a2-e2392b6b1b28'})
};
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 => "POST",
CURLOPT_POSTFIELDS => json_encode([
'transaction_id' => '01a51b3e-e17d-45eb-b8a2-e2392b6b1b28'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://gateway.3xpay.co/med-contest/exposes"
payload := strings.NewReader("{\n \"transaction_id\": \"01a51b3e-e17d-45eb-b8a2-e2392b6b1b28\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api_key", "<api-key>")
req.Header.Add("api_secret", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://gateway.3xpay.co/med-contest/exposes")
.header("api_key", "<api-key>")
.header("api_secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"transaction_id\": \"01a51b3e-e17d-45eb-b8a2-e2392b6b1b28\"\n}")
.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::Post.new(url)
request["api_key"] = '<api-key>'
request["api_secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"transaction_id\": \"01a51b3e-e17d-45eb-b8a2-e2392b6b1b28\"\n}"
response = http.request(request)
puts response.read_body{
"id": 1024,
"transactionId": 50231,
"status": "WAITING_CONTENT",
"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"
}Abrir Disputa de MED
Cria o registro inicial da contestação a partir do UUID da transação contestada. Após esta chamada, o status fica em WAITING_CONTENT aguardando o upload da evidência via PATCH.
curl --request POST \
--url https://gateway.3xpay.co/med-contest/exposes \
--header 'Content-Type: application/json' \
--header 'api_key: <api-key>' \
--header 'api_secret: <api-key>' \
--data '
{
"transaction_id": "01a51b3e-e17d-45eb-b8a2-e2392b6b1b28"
}
'import requests
url = "https://gateway.3xpay.co/med-contest/exposes"
payload = { "transaction_id": "01a51b3e-e17d-45eb-b8a2-e2392b6b1b28" }
headers = {
"api_key": "<api-key>",
"api_secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
api_key: '<api-key>',
api_secret: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({transaction_id: '01a51b3e-e17d-45eb-b8a2-e2392b6b1b28'})
};
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 => "POST",
CURLOPT_POSTFIELDS => json_encode([
'transaction_id' => '01a51b3e-e17d-45eb-b8a2-e2392b6b1b28'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://gateway.3xpay.co/med-contest/exposes"
payload := strings.NewReader("{\n \"transaction_id\": \"01a51b3e-e17d-45eb-b8a2-e2392b6b1b28\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api_key", "<api-key>")
req.Header.Add("api_secret", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://gateway.3xpay.co/med-contest/exposes")
.header("api_key", "<api-key>")
.header("api_secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"transaction_id\": \"01a51b3e-e17d-45eb-b8a2-e2392b6b1b28\"\n}")
.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::Post.new(url)
request["api_key"] = '<api-key>'
request["api_secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"transaction_id\": \"01a51b3e-e17d-45eb-b8a2-e2392b6b1b28\"\n}"
response = http.request(request)
puts response.read_body{
"id": 1024,
"transactionId": 50231,
"status": "WAITING_CONTENT",
"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"
}WAITING_CONTENT aguardando o upload da evidência via PATCH /med-contest/exposes/{medId}.
id retornado nesta resposta é o medId usado nos endpoints subsequentes (detalhe e envio de evidência).transaction_id aqui é o UUID recebido no webhook de infração (com transactionStatus = "MED"), não o ID numérico interno.Body
UUID da transação contestada, recebido no webhook IN com transactionStatus = MED.
"01a51b3e-e17d-45eb-b8a2-e2392b6b1b28"
Response
Disputa criada com sucesso
Registro da disputa de MED. O campo id é o medId usado nos demais endpoints.
ID numérico da disputa (medId).
1024
ID interno da transação relacionada.
50231
Status do registro de disputa.
WAITING_CONTENT, REQUESTED, DEFENSE_SUBMITTED, DEFENSE_FAILED, APPROVED, REJECTED, REFUNDED, CANCELLED URL do arquivo de evidência armazenado. null enquanto a evidência não foi enviada.
"https://s3.../comprovante.pdf"
Descrição/texto da defesa enviada com a evidência.
"Comprovante de pagamento original."
ID da disputa no PSP upstream (preenchido após o envio).
"dispute_8f3a..."
Nome do PSP upstream que recebeu a defesa.
"woovi"
Quantidade de tentativas de envio.
0
Mensagem do último erro de transporte, se houver.
"2026-05-12T10:30:00.000Z"
"2026-05-12T10:30:00.000Z"