API Docs Início Documentação Referência de API Copiar para LLM
POST/v1/BankAccount/{id}/Transfer
Banking · Transferências

Solicitar uma transferência interna, inter-bancária via TED ou PIX

Cria um novo registro de Bank Account.

Visão geral

Solicitar uma transferência interna, inter-bancária via TED ou PIX

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
idpathstringobrigatório3fa85f64-5717-4562-b3fc-2c963f66afa6
X-Registration-NumberheaderstringopcionalCPF do operador autenticadorvalor

Corpo da requisição

Envie no formato application/json. Corpo obrigatório.

Campos

CampoTipoObrigatórioDescriçãoValoresExemplo
amountinteger (int64)obrigatório0
bankAccountBeneficiaryIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
bankAccountBeneficiaryCreateobjetoopcionalvaria conforme o tipo — ver exemplo{ … }
qrCodestringopcional"texto"
transferDatestring (date-time)obrigatório"2025-08-11T13:45:00Z"
paymentPurposeobjetoopcionalvaria conforme o tipo — ver exemplo"PagamentoDeImpostosTributosETaxas"
endToEndIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
saveBeneficiarybooleanopcionaltrue
urlSendFlowFinishNotificationstringopcional"https://exemplo.com.br/callback"
debitAccountExternalIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
sessionIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
codestringopcional"texto"

Exemplo de corpo

{
  "amount": 0,
  "bankAccountBeneficiaryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "bankAccountBeneficiaryCreate": {
    "name": "Fulano de Tal",
    "registrationNumber": "12345678909",
    "bank": 0,
    "bankIspb": 0,
    "agency": 0,
    "accountNumber": "texto",
    "accountType": "NaturalCheckingAccount",
    "operationTypeValue": "Transfer",
    "pixKeyTypeValue": "NaturalRegistrationNumber",
    "keyPix": "texto"
  },
  "qrCode": "texto",
  "transferDate": "2025-08-11T13:45:00Z",
  "paymentPurpose": "PagamentoDeImpostosTributosETaxas",
  "endToEndId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "saveBeneficiary": true,
  "urlSendFlowFinishNotification": "https://exemplo.com.br/callback",
  "debitAccountExternalId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "sessionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "code": "texto"
}

Response

Resposta 200.

Campos

CampoTipoObrigatórioDescriçãoValoresExemplo
idstringopcional"texto"
createdAtstring (date-time)opcional"2025-08-11T13:45:00Z"
createdByobjetoopcionalvaria conforme o tipo — ver exemplo{ … }
tenantstringopcional"texto"
tenantDisplaystringopcional"texto"
updatedAtstring (date-time)opcional"2025-08-11T13:45:00Z"
updatedByobjetoopcionalvaria conforme o tipo — ver exemplo{ … }
ownerUserobjetoopcionalvaria conforme o tipo — ver exemplo{ … }
ownerGroupobjetoopcionalvaria conforme o tipo — ver exemplo{ … }
nsustringopcional"texto"
amountinteger (int64)opcional0
transferDatestring (date-time)opcional"2025-08-11T13:45:00Z"
paymentPurposeobjetoopcionalvaria conforme o tipo — ver exemplo"PagamentoDeImpostosTributosETaxas"
paymentPurposeDisplaystringopcional"texto"
statusstringopcionalApproved, Pending, Rejected, Timeout, Canceled, Error, Processing, Finished, Scheduled, Reversed, ComplianceApproval, CancellationRequested"Approved"
statusDisplaystringopcional"texto"
accountingEntrystringopcional"texto"
errorMessagestringopcional"texto"
reversalCodeReasonstringopcional"texto"
reversalDescriptionReasonstringopcional"texto"
bankAccountBeneficiaryIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
bankAccountBeneficiaryobjetoopcionalvaria conforme o tipo — ver exemplo{ … }
authorizedAtstring (date-time)opcional"2025-08-11T13:45:00Z"
bankAccountIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
requesterobjetoopcionalvaria conforme o tipo — ver exemplo{ … }
approvalsarray de objetoopcionalobjeto — ver detalhe abaixo[ … ]

Detalhe de approvals

CampoTipoObrigatórioDescriçãoValoresExemplo
levelobjetoopcionalvaria conforme o tipo — ver exemplo"Viewer"
actionstringopcionalApprove, Reject, Cancel"Approve"
actionDisplaystringopcional"texto"
userobjetoopcionalvaria conforme o tipo — ver exemplo{ … }

Exemplo de resposta

{
  "id": "texto",
  "createdAt": "2025-08-11T13:45:00Z",
  "createdBy": {
    "userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "registrationNumber": "12345678909",
    "userIdDisplay": "texto",
    "tenantDisplay": "texto",
    "tenantName": "Fulano de Tal"
  },
  "tenant": "texto",
  "tenantDisplay": "texto",
  "updatedAt": "2025-08-11T13:45:00Z",
  "updatedBy": {
    "userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "registrationNumber": "12345678909",
    "userIdDisplay": "texto",
    "tenantDisplay": "texto",
    "tenantName": "Fulano de Tal"
  },
  "ownerUser": {
    "userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "registrationNumber": "12345678909",
    "userIdDisplay": "texto",
    "tenantDisplay": "texto",
    "tenantName": "Fulano de Tal"
  },
  "ownerGroup": {
    "groupDisplay": "texto",
    "tenantDisplay": "texto"
  },
  "nsu": "texto",
  "amount": 0,
  "transferDate": "2025-08-11T13:45:00Z",
  "paymentPurpose": "PagamentoDeImpostosTributosETaxas",
  "paymentPurposeDisplay": "texto",
  "status": "Approved",
  "statusDisplay": "texto",
  "accountingEntry": "texto",
  "errorMessage": "texto",
  "reversalCodeReason": "texto",
  "reversalDescriptionReason": "texto",
  "bankAccountBeneficiaryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "bankAccountBeneficiary": {
    "id": "texto",
    "createdAt": "2025-08-11T13:45:00Z",
    "createdBy": {
      "userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "registrationNumber": "12345678909",
      "userIdDisplay": "texto",
      "tenantDisplay": "texto",
      "tenantName": "Fulano de Tal"
    },
    "tenant": "texto",
    "tenantDisplay": "texto",
    "updatedAt": "2025-08-11T13:45:00Z",
    "updatedBy": {
      "userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "registrationNumber": "12345678909",
      "userIdDisplay": "texto",
      "tenantDisplay": "texto",
      "tenantName": "Fulano de Tal"
    },
    "ownerUser": {
      "userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "registrationNumber": "12345678909",
      "userIdDisplay": "texto",
      "tenantDisplay": "texto",
      "tenantName": "Fulano de Tal"
    },
    "ownerGroup": {
      "groupDisplay": "texto",
      "tenantDisplay": "texto"
    },
    "name": "Fulano de Tal",
    "registrationNumber": "12345678909",
    "bank": 0,
    "bankIspb": 0,
    "bankDisplay": "texto",
    "agency": 0,
    "accountNumber": "texto",
    "tenantName": "Fulano de Tal",
    "accountType": "NaturalCheckingAccount",
    "accountTypeDisplay": "texto",
    "status": "Approved",
    "statusDisplay": "texto",
    "operationTypeValue": "Transfer",
    "operationTypeValueDisplay": "texto",
    "pixKeyTypeValue": "NaturalRegistrationNumber",
    "pixKeyTypeValueDisplay": "texto",
    "keyPix": "texto",
    "authorizedAt": "2025-08-11T13:45:00Z",
    "bankAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "requester": {
      "userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "registrationNumber": "12345678909",
      "userIdDisplay": "texto",
      "tenantDisplay": "texto",
      "tenantName": "Fulano de Tal"
    },
    "approvals": [
      {
        "level": {},
        "action": {},
        "actionDisplay": "texto",
        "user": {}
      }
    ]
  },
  "authorizedAt": "2025-08-11T13:45:00Z",
  "bankAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "requester": {
    "userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "registrationNumber": "12345678909",
    "userIdDisplay": "texto",
    "tenantDisplay": "texto",
    "tenantName": "Fulano de Tal"
  },
  "approvals": [
    {
      "level": "Viewer",
      "action": "Approve",
      "actionDisplay": "texto",
      "user": {
        "userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "registrationNumber": "12345678909",
        "userIdDisplay": "texto",
        "tenantDisplay": "texto",
        "tenantName": "Fulano de Tal"
      }
    }
  ]
}

Códigos de retorno

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

Exemplos

curl -X POST "{{baseUrl}}/v1/BankAccount/3fa85f64-5717-4562-b3fc-2c963f66afa6/Transfer" \
  -H "Authorization: Bearer {{token}}" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": 0,
  "bankAccountBeneficiaryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "bankAccountBeneficiaryCreate": {
    "name": "Fulano de Tal",
    "registrationNumber": "12345678909",
    "bank": 0,
    "bankIspb": 0,
    "agency": 0,
    "accountNumber": "texto",
    "accountType": "NaturalCheckingAccount",
    "operationTypeValue": "Transfer",
    "pixKeyTypeValue": "NaturalRegistrationNumber",
    "keyPix": "texto"
  },
  "qrCode": "texto",
  "transferDate": "2025-08-11T13:45:00Z",
  "paymentPurpose": "PagamentoDeImpostosTributosETaxas",
  "endToEndId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "saveBeneficiary": true,
  "urlSendFlowFinishNotification": "https://exemplo.com.br/callback",
  "debitAccountExternalId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "sessionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "code": "texto"
}'
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/Transfer";

var corpo = new StringContent(
    """
    {
      "amount": 0,
      "bankAccountBeneficiaryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "bankAccountBeneficiaryCreate": {
        "name": "Fulano de Tal",
        "registrationNumber": "12345678909",
        "bank": 0,
        "bankIspb": 0,
        "agency": 0,
        "accountNumber": "texto",
        "accountType": "NaturalCheckingAccount",
        "operationTypeValue": "Transfer",
        "pixKeyTypeValue": "NaturalRegistrationNumber",
        "keyPix": "texto"
      },
      "qrCode": "texto",
      "transferDate": "2025-08-11T13:45:00Z",
      "paymentPurpose": "PagamentoDeImpostosTributosETaxas",
      "endToEndId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "saveBeneficiary": true,
      "urlSendFlowFinishNotification": "https://exemplo.com.br/callback",
      "debitAccountExternalId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "sessionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "code": "texto"
    }
    """,
    Encoding.UTF8, "application/json");

var resp = await http.PostAsync(rota, corpo);
resp.EnsureSuccessStatusCode();
var json = await resp.Content.ReadAsStringAsync();
const baseUrl = '{{baseUrl}}';
const token   = '{{token}}';

const payload = {
  "amount": 0,
  "bankAccountBeneficiaryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "bankAccountBeneficiaryCreate": {
    "name": "Fulano de Tal",
    "registrationNumber": "12345678909",
    "bank": 0,
    "bankIspb": 0,
    "agency": 0,
    "accountNumber": "texto",
    "accountType": "NaturalCheckingAccount",
    "operationTypeValue": "Transfer",
    "pixKeyTypeValue": "NaturalRegistrationNumber",
    "keyPix": "texto"
  },
  "qrCode": "texto",
  "transferDate": "2025-08-11T13:45:00Z",
  "paymentPurpose": "PagamentoDeImpostosTributosETaxas",
  "endToEndId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "saveBeneficiary": true,
  "urlSendFlowFinishNotification": "https://exemplo.com.br/callback",
  "debitAccountExternalId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "sessionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "code": "texto"
};

const resp = await fetch(`${baseUrl}/v1/BankAccount/3fa85f64-5717-4562-b3fc-2c963f66afa6/Transfer`, {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(payload),
});

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