API Docs Início Documentação Referência de API Copiar para LLM
PUT/v1/BankAccount/AutomaticSplit/Operation/{operationId}
Banking · Conta digital

Atualiza uma operação de AutomaticSplit por substituição completa dos dados

Atualiza por completo um registro de Bank Account existente.

Visão geral

Atualiza uma operação de AutomaticSplit por substituição completa dos dados.
Id da operação somente na rota. Body = mesmo DTO do Create.

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
operationIdpathstringobrigatório3fa85f64-5717-4562-b3fc-2c963f66afa6

Corpo da requisição

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

Campos

CampoTipoObrigatórioDescriçãoValoresExemplo
escrowBankAccountIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
borrowerBeneficiaryIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
creditorsarray de objetoopcionalobjeto — ver detalhe abaixo[ … ]
principalAmountinteger (int64)opcional0
installmentsCountintegeropcional0
dueDateTypestringopcionalFixed, Dynamic"Fixed"
installmentTypestringopcionalFixed, Dynamic"Fixed"
firstDueDatestring (date)opcional"2025-08-11"
guaranteePercentOverPMTnumber (decimal)opcional1.99
interestPercentnumber (decimal)opcional1.99
finePercentnumber (decimal)opcional1.99
borrowerTransferAuthorizedbooleanopcionaltrue
borrowerTransferSameDaybooleanopcionaltrue
borrowerTransferDayOfMonthintegeropcional0
acceptPartialInstallmentbooleanopcionaltrue
activebooleanopcionaltrue
planOverridearray de objetoopcionalobjeto — ver detalhe abaixo[ … ]

Detalhe de creditors

CampoTipoObrigatórioDescriçãoValoresExemplo
beneficiaryIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
proportionnumber (decimal)opcional1000
activebooleanopcionaltrue

Detalhe de planOverride

CampoTipoObrigatórioDescriçãoValoresExemplo
numberintegeropcional0
dueDatestring (date)opcional"2025-08-11"
amountinteger (int64)opcional0

Exemplo de corpo

{
  "escrowBankAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "borrowerBeneficiaryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "creditors": [
    {
      "beneficiaryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "proportion": 1000,
      "active": true
    }
  ],
  "principalAmount": 0,
  "installmentsCount": 0,
  "dueDateType": "Fixed",
  "installmentType": "Fixed",
  "firstDueDate": "2025-08-11",
  "guaranteePercentOverPMT": 1.99,
  "interestPercent": 1.99,
  "finePercent": 1.99,
  "borrowerTransferAuthorized": true,
  "borrowerTransferSameDay": true,
  "borrowerTransferDayOfMonth": 0,
  "acceptPartialInstallment": true,
  "active": true,
  "planOverride": [
    {
      "number": 0,
      "dueDate": "2025-08-11",
      "amount": 0
    }
  ]
}

Response

Resposta 200.

Campos

CampoTipoObrigatórioDescriçãoValoresExemplo
idstringopcional"texto"
codestringopcional"texto"
escrowBankAccountIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
borrowerBeneficiaryIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
principalAmountinteger (int64)opcional0
installmentsCountintegeropcional0
dueDateTypeintegeropcional0
installmentTypeintegeropcional0
firstDueDatestring (date)opcional"2025-08-11"
guaranteePercentOverPMTnumber (decimal)opcional1.99
interestPercentnumber (decimal)opcional1.99
finePercentnumber (decimal)opcional1.99
acceptPartialInstallmentbooleanopcionaltrue
borrowerTransferAuthorizedbooleanopcionaltrue
borrowerTransferSameDaybooleanopcionaltrue
borrowerTransferDayOfMonthintegeropcional0
timezonestringopcional"texto"
statusintegeropcional0
createdAtstring (date-time)opcional"2025-08-11T13:45:00Z"
borrowerobjetoopcionalobjeto — ver detalhe abaixo{ … }
creditorsarray de objetoopcionalobjeto — ver detalhe abaixo[ … ]
installmentsarray de objetoopcionalobjeto — ver detalhe abaixo[ … ]
escrowobjetoopcionalvaria conforme o tipo — ver exemplo{ … }

Detalhe de borrower

CampoTipoObrigatórioDescriçãoValoresExemplo
namestringopcional"Fulano de Tal"
taxIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
ispbinteger (int64)opcional0
agencystringopcional"texto"
accountstringopcional"texto"
pixKeystringopcional"texto"
pixKeyTypeValueDisplaystringopcional"texto"
transferAuthorizedbooleanopcionaltrue
payoutRailstringopcionalPIX, TED"PIX"
bankNamestringopcional"Fulano de Tal"
bankCodeintegeropcional0
beneficiaryIdPIXstringopcional"texto"
beneficiaryIdTEDstringopcional"texto"

Detalhe de creditors

CampoTipoObrigatórioDescriçãoValoresExemplo
idstringopcional"texto"
namestringopcional"Fulano de Tal"
taxIdstringopcional"3fa85f64-5717-4562-b3fc-2c963f66afa6"
proportionnumber (decimal)opcional1000
orderintegeropcional0
activebooleanopcionaltrue
ispbinteger (int64)opcional0
agencystringopcional"texto"
accountstringopcional"texto"
pixKeystringopcional"texto"
pixKeyTypeValueDisplaystringopcional"texto"
payoutRailstringopcionalPIX, TED"PIX"
bankCodeintegeropcional0
bankNamestringopcional"Fulano de Tal"
beneficiaryIdPIXstringopcional"texto"
beneficiaryIdTEDstringopcional"texto"

Detalhe de installments

CampoTipoObrigatórioDescriçãoValoresExemplo
idstringopcional"texto"
numberintegeropcional0
dueDatestring (date)opcional"2025-08-11"
amountinteger (int64)opcional0
paidAmountinteger (int64)opcional1
statusintegeropcional0
interestAccruedinteger (int64)opcional0
fineAccruedinteger (int64)opcional0
paymentDatestring (date)opcional"2025-08-11"
bankAccountTransfersarray de objetoopcionalobjeto — ver detalhe abaixo[ … ]

Detalhe de bankAccountTransfers

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",
  "code": "texto",
  "escrowBankAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "borrowerBeneficiaryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "principalAmount": 0,
  "installmentsCount": 0,
  "dueDateType": 0,
  "installmentType": 0,
  "firstDueDate": "2025-08-11",
  "guaranteePercentOverPMT": 1.99,
  "interestPercent": 1.99,
  "finePercent": 1.99,
  "acceptPartialInstallment": true,
  "borrowerTransferAuthorized": true,
  "borrowerTransferSameDay": true,
  "borrowerTransferDayOfMonth": 0,
  "timezone": "texto",
  "status": 0,
  "createdAt": "2025-08-11T13:45:00Z",
  "borrower": {
    "name": "Fulano de Tal",
    "taxId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "ispb": 0,
    "agency": "texto",
    "account": "texto",
    "pixKey": "texto",
    "pixKeyTypeValueDisplay": "texto",
    "transferAuthorized": true,
    "payoutRail": "PIX",
    "bankName": "Fulano de Tal",
    "bankCode": 0,
    "beneficiaryIdPIX": "texto",
    "beneficiaryIdTED": "texto"
  },
  "creditors": [
    {
      "id": "texto",
      "name": "Fulano de Tal",
      "taxId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "proportion": 1000,
      "order": 0,
      "active": true,
      "ispb": 0,
      "agency": "texto",
      "account": "texto",
      "pixKey": "texto",
      "pixKeyTypeValueDisplay": "texto",
      "payoutRail": "PIX",
      "bankCode": 0,
      "bankName": "Fulano de Tal",
      "beneficiaryIdPIX": "texto",
      "beneficiaryIdTED": "texto"
    }
  ],
  "installments": [
    {
      "id": "texto",
      "number": 0,
      "dueDate": "2025-08-11",
      "amount": 0,
      "paidAmount": 1,
      "status": 0,
      "interestAccrued": 0,
      "fineAccrued": 0,
      "paymentDate": "2025-08-11",
      "bankAccountTransfers": [
        {}
      ]
    }
  ],
  "escrow": {
    "bankCode": 0,
    "agency": 0,
    "accountNumber": 0,
    "bankName": "Fulano de Tal",
    "ispb": 0
  }
}

Códigos de retorno

CódigoSignificadoDetalhe do contrato
200Requisição bem-sucedida.
400Requisição inválida (validação de campos ou regra de negócio).

Exemplos

curl -X PUT "{{baseUrl}}/v1/BankAccount/AutomaticSplit/Operation/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
  -H "Authorization: Bearer {{token}}" \
  -H "Content-Type: application/json" \
  -d '{
  "escrowBankAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "borrowerBeneficiaryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "creditors": [
    {
      "beneficiaryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "proportion": 1000,
      "active": true
    }
  ],
  "principalAmount": 0,
  "installmentsCount": 0,
  "dueDateType": "Fixed",
  "installmentType": "Fixed",
  "firstDueDate": "2025-08-11",
  "guaranteePercentOverPMT": 1.99,
  "interestPercent": 1.99,
  "finePercent": 1.99,
  "borrowerTransferAuthorized": true,
  "borrowerTransferSameDay": true,
  "borrowerTransferDayOfMonth": 0,
  "acceptPartialInstallment": true,
  "active": true,
  "planOverride": [
    {
      "number": 0,
      "dueDate": "2025-08-11",
      "amount": 0
    }
  ]
}'
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/AutomaticSplit/Operation/3fa85f64-5717-4562-b3fc-2c963f66afa6";

var corpo = new StringContent(
    """
    {
      "escrowBankAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "borrowerBeneficiaryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "creditors": [
        {
          "beneficiaryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "proportion": 1000,
          "active": true
        }
      ],
      "principalAmount": 0,
      "installmentsCount": 0,
      "dueDateType": "Fixed",
      "installmentType": "Fixed",
      "firstDueDate": "2025-08-11",
      "guaranteePercentOverPMT": 1.99,
      "interestPercent": 1.99,
      "finePercent": 1.99,
      "borrowerTransferAuthorized": true,
      "borrowerTransferSameDay": true,
      "borrowerTransferDayOfMonth": 0,
      "acceptPartialInstallment": true,
      "active": true,
      "planOverride": [
        {
          "number": 0,
          "dueDate": "2025-08-11",
          "amount": 0
        }
      ]
    }
    """,
    Encoding.UTF8, "application/json");

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

const payload = {
  "escrowBankAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "borrowerBeneficiaryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "creditors": [
    {
      "beneficiaryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "proportion": 1000,
      "active": true
    }
  ],
  "principalAmount": 0,
  "installmentsCount": 0,
  "dueDateType": "Fixed",
  "installmentType": "Fixed",
  "firstDueDate": "2025-08-11",
  "guaranteePercentOverPMT": 1.99,
  "interestPercent": 1.99,
  "finePercent": 1.99,
  "borrowerTransferAuthorized": true,
  "borrowerTransferSameDay": true,
  "borrowerTransferDayOfMonth": 0,
  "acceptPartialInstallment": true,
  "active": true,
  "planOverride": [
    {
      "number": 0,
      "dueDate": "2025-08-11",
      "amount": 0
    }
  ]
};

const resp = await fetch(`${baseUrl}/v1/BankAccount/AutomaticSplit/Operation/3fa85f64-5717-4562-b3fc-2c963f66afa6`, {
  method: 'PUT',
  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