GET
/v1/BankAccount/{id}/Pix/Contestations/{infractionReportId}Banking · PIX
Busca detalhes da contestação
Consulta Bank Account pelo identificador informado na rota.
Visão geral
Busca detalhes da contestação.
Autenticação e pré-requisitos
Requer autenticação. Envie o token no header Authorization: Bearer {{token}} (JWT do AWS Cognito). Integrações servidor-a-servidor podem usar X-Api-Key. Todo tráfego é HTTPS e a credencial nunca vai na URL nem em query string.
Pré-requisitos: a rota exige identificador(es) de recurso já existente(s):
id— Id da conta.infractionReportId— Id do relato MED.
Request
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|---|
id | path | string | obrigatório | Id da conta. | 3fa85f64-5717-4562-b3fc-2c963f66afa6 |
infractionReportId | path | string | obrigatório | Id do relato MED. | 3fa85f64-5717-4562-b3fc-2c963f66afa6 |
Corpo da requisição
Este endpoint não recebe corpo.
Response
Resposta 200.
Campos
| Campo | Tipo | Obrigatório | Descrição | Valores | Exemplo |
|---|---|---|---|---|---|
infractionReportId | string | opcional | — | — | "3fa85f64-5717-4562-b3fc-2c963f66afa6" |
transactionId | string | opcional | — | — | "3fa85f64-5717-4562-b3fc-2c963f66afa6" |
contestationType | string | opcional | — | REPORTED, CONTESTED | "REPORTED" |
registrationNumber | string | opcional | — | — | "12345678909" |
recipientName | string | opcional | — | — | "Fulano de Tal" |
bankCode | string | opcional | — | — | "texto" |
bankName | string | opcional | — | — | "Fulano de Tal" |
agencyCode | string | opcional | — | — | "texto" |
accountNumber | string | opcional | — | — | "texto" |
accountType | string | opcional | — | CheckingAccount, SalaryAccount, SavingsAccount, Transactional | "CheckingAccount" |
transactionDateTime | string (date-time) | opcional | — | — | "2025-08-11T13:45:00Z" |
operationAmount | number (decimal) | opcional | — | — | 1000 |
recoveredAmount | number (decimal) | opcional | — | — | 1000 |
status | string | opcional | — | UNKNOWN, IN_ANALYSIS, APPROVED, PARTIALLY_REFUNDED, FULLY_REFUNDED, REJECTED, DEADLINE_EXPIRED, CANCELLED | "UNKNOWN" |
medStatus | string | opcional | — | Unknown, OPEN, ACKNOWLEDGED, CLOSED, CANCELLED | "Unknown" |
observations | string | opcional | — | — | "texto" |
createdAt | string (date-time) | opcional | — | — | "2025-08-11T13:45:00Z" |
lastUpdatedAt | string (date-time) | opcional | — | — | "2025-08-11T13:45:00Z" |
bancoRendimentoSentAt | string (date-time) | opcional | — | — | "2025-08-11T13:45:00Z" |
Exemplo de resposta
{
"infractionReportId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"transactionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"contestationType": "REPORTED",
"registrationNumber": "12345678909",
"recipientName": "Fulano de Tal",
"bankCode": "texto",
"bankName": "Fulano de Tal",
"agencyCode": "texto",
"accountNumber": "texto",
"accountType": "CheckingAccount",
"transactionDateTime": "2025-08-11T13:45:00Z",
"operationAmount": 1000,
"recoveredAmount": 1000,
"status": "UNKNOWN",
"medStatus": "Unknown",
"observations": "texto",
"createdAt": "2025-08-11T13:45:00Z",
"lastUpdatedAt": "2025-08-11T13:45:00Z",
"bancoRendimentoSentAt": "2025-08-11T13:45:00Z"
}Códigos de retorno
| Código | Significado | Detalhe do contrato |
|---|---|---|
200 | Requisição bem-sucedida. | — |
404 | Recurso não encontrado. | — |
500 | Erro interno no servidor. | — |
Exemplos
curl -X GET "{{baseUrl}}/v1/BankAccount/3fa85f64-5717-4562-b3fc-2c963f66afa6/Pix/Contestations/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
-H "Authorization: Bearer {{token}}"var baseUrl = "{{baseUrl}}";
var token = "{{token}}";
using var http = new HttpClient { BaseAddress = new Uri(baseUrl) };
http.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", token);
var rota = "/v1/BankAccount/3fa85f64-5717-4562-b3fc-2c963f66afa6/Pix/Contestations/3fa85f64-5717-4562-b3fc-2c963f66afa6";
var resp = await http.GetAsync(rota);
resp.EnsureSuccessStatusCode();
var json = await resp.Content.ReadAsStringAsync();const baseUrl = '{{baseUrl}}';
const token = '{{token}}';
const resp = await fetch(`${baseUrl}/v1/BankAccount/3fa85f64-5717-4562-b3fc-2c963f66afa6/Pix/Contestations/3fa85f64-5717-4562-b3fc-2c963f66afa6`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${token}`,
},
});
if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
const data = await resp.json();Troque apenas {{baseUrl}} e {{token}}. No Postman, defina-os como variáveis de environment; o cURL importa em Import > Raw text.
Downloads
Este endpoint já vem configurado nas collections abaixo, na pasta da etapa correspondente.
Collection completaConsignado privado e FGTS, em pastas espelhando a documentação.Baixar →Environment do PostmanAs variáveis fora da collection, para versionar uma sem versionar o token.Baixar →Documentação consolidada para LLMToda a documentação em um arquivo de texto, na ordem da navegação.Baixar →Referência em MarkdownEste contrato, campo a campo, gerado do spec.Baixar →
Guia de importação: Como importar no Postman · Todos os downloads: Downloads