Skip to main content
GET
/
api
/
v1
/
core
/
med
/
{caseID}
Get MED case
curl --request GET \
  --url https://spi.sandbox.lerian.net/api/v1/core/med/{caseID} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://spi.sandbox.lerian.net/api/v1/core/med/{caseID}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://spi.sandbox.lerian.net/api/v1/core/med/{caseID}', 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://spi.sandbox.lerian.net/api/v1/core/med/{caseID}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$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://spi.sandbox.lerian.net/api/v1/core/med/{caseID}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://spi.sandbox.lerian.net/api/v1/core/med/{caseID}")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://spi.sandbox.lerian.net/api/v1/core/med/{caseID}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "analysisDeadlineAt": "<string>",
  "caseId": "<string>",
  "completionDeadlineAt": "<string>",
  "createdAt": "<string>",
  "evidenceReferences": [
    {
      "addedAt": "<string>",
      "addedBy": "<string>",
      "description": "<string>",
      "reference": "<string>",
      "type": "<string>"
    }
  ],
  "id": "<string>",
  "originalEndToEndId": "<string>",
  "reason": "<string>",
  "status": "<string>",
  "updatedAt": "<string>",
  "refundAmount": 123,
  "resolution": "<string>",
  "resolvedAt": "<string>"
}
{
"code": "<string>",
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Path Parameters

caseID
string
required

MED case ID

Response

OK

analysisDeadlineAt
string
required

UTC deadline for the initial analysis window (7 days), RFC 3339 format.

Example:

"2025-03-17T14:30:00Z"

caseId
string
required

Caller-assigned business identifier for the MED dispute case.

Example:

"MED-2025-001"

completionDeadlineAt
string
required

UTC deadline for full case completion (10 days), RFC 3339 format.

Example:

"2025-04-06T14:30:00Z"

createdAt
string
required

UTC timestamp when the case was created, RFC 3339 format.

Example:

"2025-03-07T14:30:00Z"

evidenceReferences
object[] | null
required

Evidence attachments supporting the dispute.

id
string
required

Server-assigned UUID of the MED case.

Example:

"550e8400-e29b-41d4-a716-446655440000"

originalEndToEndId
string
required

PIX EndToEndID of the original disputed transaction, format E{ISPB}{YYYYMMDD}{uniqueID}.

Example:

"E1234567820250307ABCDEFGHIJKLMNO"

reason
string
required

Motivation for the dispute: FRAUD, OPERATIONAL_FLAW, or CANCELLED.

Example:

"FRAUD"

status
string
required

Lifecycle state: INITIATED, UNDER_ANALYSIS, AWAITING_RESPONSE, APPROVED, REJECTED, EXPIRED, or COMPLETED.

Example:

"INITIATED"

updatedAt
string
required

UTC timestamp of the last update to the case, RFC 3339 format.

Example:

"2025-03-07T14:30:00Z"

refundAmount
integer<int64>

Refund amount in centavos (BRL minor units); zero unless the case was resolved with a refund.

Example:

0

resolution
string

Outcome once resolved: APPROVED, REJECTED, CANCELLED_BY_OPENER, DEADLINE_EXPIRED, or AUTO_APPROVED; empty while unresolved.

Example:

""

resolvedAt
string

UTC timestamp when the case was resolved, RFC 3339 format; empty while unresolved.

Example:

""