GET
/v1/BankAccount/{id}/Pix/Med/Recover/{recoveryId}/RefundRequestsBanking · PIX
Listar solicitações de devolução (Refund Requests) de um MED
Lista e filtra registros de Bank Account.
Visão geral
Listar solicitações de devolução (Refund Requests) de um MED
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 bancáriarecoveryId— Identificador da recuperação
Request
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|---|
id | path | string | obrigatório | Id da conta bancária | 3fa85f64-5717-4562-b3fc-2c963f66afa6 |
recoveryId | path | string | obrigatório | Identificador da recuperação | 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 |
|---|---|---|---|---|---|
correlationId | string | opcional | — | — | "3fa85f64-5717-4562-b3fc-2c963f66afa6" |
requests | array de objeto | opcional | — | objeto — ver detalhe abaixo | [ … ] |
Detalhe de requests
| Campo | Tipo | Obrigatório | Descrição | Valores | Exemplo |
|---|---|---|---|---|---|
id | string | opcional | — | — | "texto" |
recoveryId | string | opcional | — | — | "3fa85f64-5717-4562-b3fc-2c963f66afa6" |
transactionId | string | opcional | — | — | "3fa85f64-5717-4562-b3fc-2c963f66afa6" |
infractionId | string | opcional | — | — | "3fa85f64-5717-4562-b3fc-2c963f66afa6" |
reason | string | opcional | — | NONE, FRAUD, OPERATIONAL_FLAW, REFUND_CANCELLED, PIX_AUTOMATICO | "NONE" |
requestedAmount | integer (int64) | opcional | — | — | 0 |
refundedAmount | integer (int64) | opcional | — | — | 0 |
analysisDetails | string | opcional | — | — | "texto" |
status | string | opcional | — | NONE, OPEN, CLOSED, CANCELLED | "NONE" |
requesterIspb | string | opcional | — | — | "texto" |
contestedIspb | string | opcional | — | — | "texto" |
createdAt | string (date-time) | opcional | — | — | "2025-08-11T13:45:00Z" |
registeredAt | string (date-time) | opcional | — | — | "2025-08-11T13:45:00Z" |
updatedAt | string (date-time) | opcional | — | — | "2025-08-11T13:45:00Z" |
analysisResult | string | opcional | — | NONE, TOTALLY_ACCEPTED, PARTIALLY_ACCEPTED, REJECTED | "NONE" |
resultDetails | string | opcional | — | — | "texto" |
rejectionReason | string | opcional | — | NONE, NO_BALANCE, ACCOUNT_CLOSURE, INVALID_REQUEST, OTHER | "NONE" |
returnAccount | objeto | opcional | — | varia conforme o tipo — ver exemplo | { … } |
isMonitoredAccount | boolean | opcional | — | — | true |
Exemplo de resposta
{
"correlationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"requests": [
{
"id": "texto",
"recoveryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"transactionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"infractionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"reason": "NONE",
"requestedAmount": 0,
"refundedAmount": 0,
"analysisDetails": "texto",
"status": "NONE",
"requesterIspb": "texto",
"contestedIspb": "texto",
"createdAt": "2025-08-11T13:45:00Z",
"registeredAt": "2025-08-11T13:45:00Z",
"updatedAt": "2025-08-11T13:45:00Z",
"analysisResult": "NONE",
"resultDetails": "texto",
"rejectionReason": "NONE",
"returnAccount": {
"registrationNumber": "12345678909",
"ispb": "texto",
"agency": 0,
"account": 0,
"accountType": {}
},
"isMonitoredAccount": true
}
]
}Códigos de retorno
| Código | Significado | Detalhe do contrato |
|---|---|---|
200 | Requisição bem-sucedida. | — |
400 | Requisição inválida (validação de campos ou regra de negócio). | — |
404 | Recurso não encontrado. | — |
Exemplos
curl -X GET "{{baseUrl}}/v1/BankAccount/3fa85f64-5717-4562-b3fc-2c963f66afa6/Pix/Med/Recover/3fa85f64-5717-4562-b3fc-2c963f66afa6/RefundRequests" \
-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/Med/Recover/3fa85f64-5717-4562-b3fc-2c963f66afa6/RefundRequests";
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/Med/Recover/3fa85f64-5717-4562-b3fc-2c963f66afa6/RefundRequests`, {
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