List MED infractions
curl --request GET \
--url https://api.example.com/v1/med/infractions \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/med/infractions"
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))
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/v1/med/infractions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/v1/med/infractions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"dtHrCriacao": "2024-01-01T12:00:00.000Z",
"dtHrUltModificacao": "2024-01-01T12:05:00.000Z",
"endToEndId": "E1234567820240101000000000000001",
"idRelatoInfracao": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"motivo": 1,
"motivoDescription": "Solicitacao de devolucao",
"pspContraParte": "87654321",
"pspCriador": "12345678",
"status": 0,
"statusDescription": "Aberto",
"tpSitOrigem": 0,
"tpSitOrigemDescription": "Golpe/Estelionato",
"detalhes": "Suspected scam.",
"detalhesAnalise": "Confirmed.",
"idMarcacaoFraude": "c3d4e5f6-a7b8-9012-cdef-345678901234",
"idRecValores": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"resultadoAnalise": 0,
"resultadoAnaliseDescription": "Aceita",
"vlrInfracao": 15000
}
]
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}List MED infractions
Lists the infractions detected by the worker pollers (filed by this institution or against it), filterable by status, role ISPB, and the suspect payment’s endToEndId. Read projection — no JDPI round-trip.
GET
/
v1
/
med
/
infractions
List MED infractions
curl --request GET \
--url https://api.example.com/v1/med/infractions \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/med/infractions"
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))
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/v1/med/infractions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/v1/med/infractions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"dtHrCriacao": "2024-01-01T12:00:00.000Z",
"dtHrUltModificacao": "2024-01-01T12:05:00.000Z",
"endToEndId": "E1234567820240101000000000000001",
"idRelatoInfracao": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"motivo": 1,
"motivoDescription": "Solicitacao de devolucao",
"pspContraParte": "87654321",
"pspCriador": "12345678",
"status": 0,
"statusDescription": "Aberto",
"tpSitOrigem": 0,
"tpSitOrigemDescription": "Golpe/Estelionato",
"detalhes": "Suspected scam.",
"detalhesAnalise": "Confirmed.",
"idMarcacaoFraude": "c3d4e5f6-a7b8-9012-cdef-345678901234",
"idRecValores": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"resultadoAnalise": 0,
"resultadoAnaliseDescription": "Aceita",
"vlrInfracao": 15000
}
]
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}Authorizations
JWT bearer token issued by the identity provider.
Query Parameters
Filter on stRelatoInfracao (0=Aberto, 1=Recebido, 2=Cancelado, 3=Analisado).
Example:
"0"
Filter on the counterparty ISPB (infractions filed against this institution).
Example:
"87654321"
Filter on the creator ISPB (infractions this institution filed).
Example:
"12345678"
Filter on the suspect payment's endToEndId.
Example:
"E1234567820240101000000000000001"
Response
OK
The list of detected infractions, newest first.
Show child attributes
Show child attributes
Was this page helpful?

