Saltar al contenido principal
POST
/
api
/
v1
/
core
/
med
/
{caseID}
/
evidence
Adjuntar evidencia a un caso MED
curl --request POST \
  --url https://spi.sandbox.lerian.net/api/v1/core/med/{caseID}/evidence \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "description": "<string>",
  "reference": "<string>",
  "type": "<string>",
  "addedBy": "<string>"
}
'
import requests

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

payload = {
"description": "<string>",
"reference": "<string>",
"type": "<string>",
"addedBy": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
description: '<string>',
reference: '<string>',
type: '<string>',
addedBy: '<string>'
})
};

fetch('https://spi.sandbox.lerian.net/api/v1/core/med/{caseID}/evidence', 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}/evidence",
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([
'description' => '<string>',
'reference' => '<string>',
'type' => '<string>',
'addedBy' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

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

payload := strings.NewReader("{\n \"description\": \"<string>\",\n \"reference\": \"<string>\",\n \"type\": \"<string>\",\n \"addedBy\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
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://spi.sandbox.lerian.net/api/v1/core/med/{caseID}/evidence")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"description\": \"<string>\",\n \"reference\": \"<string>\",\n \"type\": \"<string>\",\n \"addedBy\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

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

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"description\": \"<string>\",\n \"reference\": \"<string>\",\n \"type\": \"<string>\",\n \"addedBy\": \"<string>\"\n}"

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"
}

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Encabezados

Idempotency-Key
string

Idempotency key, max 255 characters

Parámetros de ruta

caseID
string
requerido

MED case ID

Cuerpo

application/json
description
string
requerido

Human-readable description of what the evidence shows.

Ejemplo:

"Screenshot of fraudulent transaction notification"

reference
string
requerido

Locator for the evidence, interpreted according to Type (e.g. the document URL).

Ejemplo:

"https://example.com/evidence/doc-123"

type
string
requerido

Kind of evidence being attached (e.g. URL pointing to a supporting document).

Ejemplo:

"URL"

addedBy
string

Respuesta

Created

analysisDeadlineAt
string
requerido

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

Ejemplo:

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

caseId
string
requerido

Caller-assigned business identifier for the MED dispute case.

Ejemplo:

"MED-2025-001"

completionDeadlineAt
string
requerido

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

Ejemplo:

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

createdAt
string
requerido

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

Ejemplo:

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

evidenceReferences
object[] | null
requerido

Evidence attachments supporting the dispute.

id
string
requerido

Server-assigned UUID of the MED case.

Ejemplo:

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

originalEndToEndId
string
requerido

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

Ejemplo:

"E1234567820250307ABCDEFGHIJKLMNO"

reason
string
requerido

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

Ejemplo:

"FRAUD"

status
string
requerido

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

Ejemplo:

"INITIATED"

updatedAt
string
requerido

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

Ejemplo:

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

refundAmount
integer<int64>

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

Ejemplo:

0

resolution
string

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

Ejemplo:

""

resolvedAt
string

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

Ejemplo:

""