POST
/v1/BankAccount/AutomaticSplit/OperationBanking · Conta digital
Criar Bank Account
Cria um novo registro de Bank Account.
Visão geral
Cria um novo registro de Bank Account.
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.
Request
Parâmetros
Nenhum parâmetro de rota, query ou header.
Corpo da requisição
Envie no formato application/json. Corpo obrigatório.
Campos
| Campo | Tipo | Obrigatório | Descrição | Valores | Exemplo |
|---|---|---|---|---|---|
escrowBankAccountId | string | opcional | — | — | "3fa85f64-5717-4562-b3fc-2c963f66afa6" |
borrowerBeneficiaryId | string | opcional | — | — | "3fa85f64-5717-4562-b3fc-2c963f66afa6" |
creditors | array de objeto | opcional | — | objeto — ver detalhe abaixo | [ … ] |
principalAmount | integer (int64) | opcional | — | — | 0 |
installmentsCount | integer | opcional | — | — | 0 |
dueDateType | string | opcional | — | Fixed, Dynamic | "Fixed" |
installmentType | string | opcional | — | Fixed, Dynamic | "Fixed" |
firstDueDate | string (date) | opcional | — | — | "2025-08-11" |
guaranteePercentOverPMT | number (decimal) | opcional | — | — | 1.99 |
interestPercent | number (decimal) | opcional | — | — | 1.99 |
finePercent | number (decimal) | opcional | — | — | 1.99 |
borrowerTransferAuthorized | boolean | opcional | — | — | true |
borrowerTransferSameDay | boolean | opcional | — | — | true |
borrowerTransferDayOfMonth | integer | opcional | — | — | 0 |
acceptPartialInstallment | boolean | opcional | — | — | true |
active | boolean | opcional | — | — | true |
planOverride | array de objeto | opcional | — | objeto — ver detalhe abaixo | [ … ] |
Detalhe de creditors
| Campo | Tipo | Obrigatório | Descrição | Valores | Exemplo |
|---|---|---|---|---|---|
beneficiaryId | string | opcional | — | — | "3fa85f64-5717-4562-b3fc-2c963f66afa6" |
proportion | number (decimal) | opcional | — | — | 1000 |
active | boolean | opcional | — | — | true |
Detalhe de planOverride
| Campo | Tipo | Obrigatório | Descrição | Valores | Exemplo |
|---|---|---|---|---|---|
number | integer | opcional | — | — | 0 |
dueDate | string (date) | opcional | — | — | "2025-08-11" |
amount | integer (int64) | opcional | — | — | 0 |
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
| Campo | Tipo | Obrigatório | Descrição | Valores | Exemplo |
|---|---|---|---|---|---|
id | string | opcional | — | — | "texto" |
code | string | opcional | — | — | "texto" |
status | string | opcional | — | Active, Closed, Inactive, Cancelled | "Active" |
generatedPlan | array de objeto | opcional | — | objeto — ver detalhe abaixo | [ … ] |
Detalhe de generatedPlan
| Campo | Tipo | Obrigatório | Descrição | Valores | Exemplo |
|---|---|---|---|---|---|
number | integer | opcional | — | — | 0 |
dueDate | string (date) | opcional | — | — | "2025-08-11" |
amount | number (decimal) | opcional | — | — | 1000 |
Exemplo de resposta
{
"id": "texto",
"code": "texto",
"status": "Active",
"generatedPlan": [
{
"number": 0,
"dueDate": "2025-08-11",
"amount": 1000
}
]
}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). | — |
Exemplos
curl -X POST "{{baseUrl}}/v1/BankAccount/AutomaticSplit/Operation" \
-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";
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.PostAsync(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`, {
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.
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