API Docs Início Documentação Referência de API Copiar para LLM
GET/api/v1/Beneficiary/{beneficiaryId}
Cobrança · Beneficiários

Método de visualização de um beneficiarios/cedentes específico

Consulta api pelo identificador informado na rota.

Visão geral

Método de visualização de um beneficiarios/cedentes específico.

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):

Request

Parâmetros

NomeEmTipoObrigatórioDescriçãoExemplo
beneficiaryIdpathstringobrigatórioId do beneficiário/cedente3fa85f64-5717-4562-b3fc-2c963f66afa6

Corpo da requisição

Este endpoint não recebe corpo.

Response

Resposta 200.

Campos

CampoTipoObrigatórioDescriçãoValoresExemplo
idstringopcional"texto"
beneficiaryCodeinteger (int64)opcional0
companyNamestringopcional"Fulano de Tal"
businessNamestringopcional"Fulano de Tal"
personTypeValuestringopcional"texto"
personTypeValueDisplaystringopcional"texto"
registrationNumberstringopcional"12345678909"
addressobjetoopcionalobjeto — ver detalhe abaixo{ … }
startedAtstring (date-time)opcional"2025-08-11T13:45:00Z"
enabledbooleanopcionaltrue
walletsarray de objetoopcionalobjeto — ver detalhe abaixo[ … ]
representativesarray de objetoopcionalobjeto — ver detalhe abaixo[ … ]
walletsManagedarray de integer (int64)opcional[ … ]

Detalhe de address

CampoTipoObrigatórioDescriçãoValoresExemplo
zipCodestringopcional"01310930"
addressNamestringopcional"Fulano de Tal"
numberstringopcional"texto"
complementstringopcional"texto"
districtstringopcional"texto"
citystringopcional"texto"
ufstringopcional"texto"

Detalhe de wallets

CampoTipoObrigatórioDescriçãoValoresExemplo
idstringopcional"texto"
beneficiaryIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
beneficiaryNamestringopcional"Fulano de Tal"
walletCodeinteger (int64)opcional0
bankAgencystringopcional"texto"
bankAccountstringopcional"texto"
bankAccountDebtCostsstringopcional"texto"
bankSlipCostsobjetoopcionalobjeto — ver detalhe abaixo{ … }
billingTypeValuestringopcional"texto"
billingTypeValueDisplaystringopcional"texto"
daysOverdueLimitinteger (int64)opcional0
interestCodeValuestringopcional"texto"
interestCodeValueDisplaystringopcional"texto"
notificationRecepientsarray de stringopcional[ … ]
createdAtstring (date-time)opcional"2025-08-11T13:45:00Z"
enabledbooleanopcionaltrue
enableAutoSubmitToDebtCollectionbooleanopcionaltrue

Detalhe de representatives

CampoTipoObrigatórioDescriçãoValoresExemplo
personTypeValuestringopcional"texto"
personTypeValueDisplaystringopcional"texto"
registrationNumberstringopcional"12345678909"

Detalhe de bankSlipCosts

CampoTipoObrigatórioDescriçãoValoresExemplo
registerinteger (int64)opcional0
cancellationinteger (int64)opcional0
discountinteger (int64)opcional0
changeDueDateinteger (int64)opcional0
settlementinteger (int64)opcional0
debtCollectioninteger (int64)opcional0
debtCollectionCancellationinteger (int64)opcional0
debtCollectionSettlementinteger (int64)opcional0
debtCollectionSuccessinteger (int64)opcional0
transferRegisterinteger (int64)opcional0
transferCancellationinteger (int64)opcional0
overDueCancellationinteger (int64)opcional0

Exemplo de resposta

{
  "id": "texto",
  "beneficiaryCode": 0,
  "companyName": "Fulano de Tal",
  "businessName": "Fulano de Tal",
  "personTypeValue": "texto",
  "personTypeValueDisplay": "texto",
  "registrationNumber": "12345678909",
  "address": {
    "zipCode": "01310930",
    "addressName": "Fulano de Tal",
    "number": "texto",
    "complement": "texto",
    "district": "texto",
    "city": "texto",
    "uf": "texto"
  },
  "startedAt": "2025-08-11T13:45:00Z",
  "enabled": true,
  "wallets": [
    {
      "id": "texto",
      "beneficiaryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "beneficiaryName": "Fulano de Tal",
      "walletCode": 0,
      "bankAgency": "texto",
      "bankAccount": "texto",
      "bankAccountDebtCosts": "texto",
      "bankSlipCosts": {
        "register": 0,
        "cancellation": 0,
        "discount": 0,
        "changeDueDate": 0,
        "settlement": 0,
        "debtCollection": 0,
        "debtCollectionCancellation": 0,
        "debtCollectionSettlement": 0,
        "debtCollectionSuccess": 0,
        "transferRegister": 0,
        "transferCancellation": 0,
        "overDueCancellation": 0
      },
      "billingTypeValue": "texto",
      "billingTypeValueDisplay": "texto",
      "daysOverdueLimit": 0,
      "interestCodeValue": "texto",
      "interestCodeValueDisplay": "texto",
      "notificationRecepients": [
        "01310930"
      ],
      "createdAt": "2025-08-11T13:45:00Z",
      "enabled": true,
      "enableAutoSubmitToDebtCollection": true
    }
  ],
  "representatives": [
    {
      "personTypeValue": "texto",
      "personTypeValueDisplay": "texto",
      "registrationNumber": "12345678909"
    }
  ],
  "walletsManaged": [
    0
  ]
}

Códigos de retorno

CódigoSignificadoDetalhe do contrato
200Requisição bem-sucedida.

Exemplos

curl -X GET "{{baseUrl}}/api/v1/Beneficiary/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 = "/api/v1/Beneficiary/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}/api/v1/Beneficiary/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