/v1/BankAccount/{id}/Pix/Med/Recover/SelfService/{recoveryId}Obter detalhes de recuperação por ID (Autoatendimento)
Consulta Bank Account pelo identificador informado na rota.
Visão geral
Obter detalhes de recuperação por ID (Autoatendimento)
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ária (Contexto)recoveryId— ID da recuperação
Request
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|---|
id | path | string | obrigatório | Id da conta bancária (Contexto) | 3fa85f64-5717-4562-b3fc-2c963f66afa6 |
recoveryId | path | string | obrigatório | ID 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 |
|---|---|---|---|---|---|
recoveryId | string | opcional | — | — | "3fa85f64-5717-4562-b3fc-2c963f66afa6" |
bankIspb | string | opcional | — | — | "texto" |
originalEndToEndId | string | opcional | — | — | "3fa85f64-5717-4562-b3fc-2c963f66afa6" |
receiverName | string | opcional | — | — | "Fulano de Tal" |
originalAmount | integer (int64) | opcional | — | — | 0 |
refundedAmount | integer (int64) | opcional | — | — | 0 |
status | string | opcional | — | NONE, CREATED, TRACKED, AWAITING_ANALYSIS, ANALYSED, REFUNDING, COMPLETED, CANCELLED | "NONE" |
createdAt | string (date-time) | opcional | — | — | "2025-08-11T13:45:00Z" |
updatedAt | string (date-time) | opcional | — | — | "2025-08-11T13:45:00Z" |
Exemplo de resposta
{
"recoveryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"bankIspb": "texto",
"originalEndToEndId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"receiverName": "Fulano de Tal",
"originalAmount": 0,
"refundedAmount": 0,
"status": "NONE",
"createdAt": "2025-08-11T13:45:00Z",
"updatedAt": "2025-08-11T13:45:00Z"
}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/SelfService/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/Med/Recover/SelfService/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/Med/Recover/SelfService/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.
Guia de importação: Como importar no Postman · Todos os downloads: Downloads