# Conta Bancária

# Conta Bancária | Schema V1 | 2025 - ∞

##### **Tipo Envio: Diário**

---

##### **Objeto Raiz**

<table border="1" class="min-w-full border-collapse text-sm leading-[1.7] whitespace-normal" id="bkmrk-campo-informa%C3%A7%C3%B5es-ti" style="width: 100%; border-collapse: collapse; border-style: solid;"><thead><tr><td class="text-text-100 border-b-0.5 border-border-300/60 py-2 pr-4 align-top font-bold" style="width: 17.0413%;">**Campo**</td><td class="text-text-100 border-b-0.5 border-border-300/60 py-2 pr-4 align-top font-bold" style="width: 82.9587%;">**Informações**</td></tr></thead><tbody><tr><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 17.0413%;">`timestamp`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 82.9587%;">Campo utilizado para **ordenar** a validação das informações enviadas. Caso sejam enviados **múltiplos payloads** do mesmo tipo, a ordenação ocorrerá da **data mais antiga para a mais recente**</td></tr><tr><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 17.0413%;">`elementos`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 82.9587%;">–</td></tr></tbody></table>

---

##### **Item**  


<table class="min-w-full border-collapse text-sm leading-[1.7] whitespace-normal" id="bkmrk-campo-chave-informa%C3%A7" style="width: 100%; height: 292.438px;"><thead class="text-left"><tr style="height: 29.7969px;"><th class="text-text-100 border-b-0.5 border-border-300/60 py-2 pr-4 align-top font-bold align-left" scope="col" style="width: 26.5793%; height: 29.7969px;">**Campo**</th><th class="text-text-100 border-b-0.5 border-border-300/60 py-2 pr-4 align-top font-bold align-left" scope="col" style="width: 6.7938%; height: 29.7969px;">**Chave**</th><th class="text-text-100 border-b-0.5 border-border-300/60 py-2 pr-4 align-top font-bold align-left" scope="col" style="width: 66.6269%; height: 29.7969px;">**Informações**</th></tr></thead><tbody><tr style="height: 30.1094px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 26.5793%; height: 30.1094px;">`numeroContaBancaria`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 6.7938%; height: 30.1094px;">✅</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 66.6269%; height: 30.1094px;">–</td></tr><tr style="height: 30.1094px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 26.5793%; height: 30.1094px;">`codigoBanco`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 6.7938%; height: 30.1094px;">✅</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 66.6269%; height: 30.1094px;">Código da FEBRABAN</td></tr><tr style="height: 30.1094px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 26.5793%; height: 30.1094px;">`numeroAgencia`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 6.7938%; height: 30.1094px;">✅</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 66.6269%; height: 30.1094px;">–</td></tr><tr style="height: 35.3906px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 26.5793%; height: 35.3906px;">`tipoContaBancaria`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 6.7938%; height: 35.3906px;">✅</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 66.6269%; height: 35.3906px;">[**Tabela Tipo Conta Bancária**](https://docs.tcepb.tc.br/books/tabelas-de-dominio/page/tipo-conta-bancaria)</td></tr><tr style="height: 30.1094px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 26.5793%; height: 30.1094px;">`cnpjGerenciaContaBancaria`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 6.7938%; height: 30.1094px;">✅</td><td style="width: 66.6269%; height: 30.1094px;">–</td></tr><tr style="height: 30.1094px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 26.5793%; height: 30.1094px;">`descricaoContaBancaria`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 6.7938%; height: 30.1094px;"> –</td><td style="width: 66.6269%; height: 30.1094px;">–</td></tr><tr style="height: 46.5938px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 26.5793%; height: 46.5938px;">`action`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 6.7938%; height: 46.5938px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 66.6269%; height: 46.5938px;">Define a operação a ser realizada com a informação, seja ela **criação, atualização ou exclusão**</td></tr></tbody></table>

<figure class="wp-block-table is-style-stripes" id="bkmrk--2"></figure>---

##### **Schema**

```
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Conta Bancária",
  "description": "Schema para envio de contas bancárias por unidade gestora",
  "type": "object",
  "properties": {
    "timestamp": {
      "type": "string",
      "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])T([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d)\\.\\d{3,6}$",
      "examples": ["2025-09-11T15:30:00.123456"]
    },
    "elementos": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "type": "object",
        "properties": {
          "numeroContaBancaria": {
            "type": "string",
            "minLength": 1,
            "maxLength": 13,
            "pattern": "^[A-Z0-9]+$"
          },
          "codigoBanco": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3,
            "pattern": "^[0-9]+$"
          },
          "numeroAgencia": {
            "type": "string",
            "minLength": 1,
            "maxLength": 6,
            "pattern": "^[A-Z0-9]+$"
          },
          "descricaoContaBancaria": {
            "type": "string",
            "minLength": 10,
            "maxLength": 100
          },
          "tipoContaBancaria": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1,
            "pattern": "^[0-9]+$"
          },
          "cnpjGerenciaContaBancaria": {
            "type": "string",
            "minLength": 14,
            "maxLength": 14,
            "pattern": "^[A-Z0-9]+$"
          },
          "action": {
            "type": "string",
            "enum": ["CREATE", "UPDATE", "DELETE"]
          }
        },
        "required": [
          "numeroContaBancaria",
          "codigoBanco",
          "numeroAgencia",
          "descricaoContaBancaria",
          "tipoContaBancaria",
          "cnpjGerenciaContaBancaria",
          "action"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": ["timestamp", "elementos"],
  "additionalProperties": false
}
```

---

##### **Exemplo de Payload**

```
{
  "timestamp": "2025-09-11T15:30:00.123456",
  "elementos": [
    {
      "numeroContaBancaria": "0012345678901",
      "codigoBanco": "001",
      "numeroAgencia": "1234A",
      "descricaoContaBancaria": "Conta Principal Fundo Municipal de Saúde",
      "tipoContaBancaria": "1",
      "cnpjGerenciaContaBancaria": "12345678000199",
      "action": "CREATE"
    },
    {
      "numeroContaBancaria": "0098765432100",
      "codigoBanco": "033",
      "numeroAgencia": "5678B",
      "descricaoContaBancaria": "Conta Secundária Fundo Municipal de Educação",
      "tipoContaBancaria": "2",
      "cnpjGerenciaContaBancaria": "98765432000188",
      "action": "UPDATE"
    },
    {
      "numeroContaBancaria": "0011122233300",
      "codigoBanco": "104",
      "numeroAgencia": "9999C",
      "descricaoContaBancaria": "Conta Reserva Fundo Municipal de Assistência Social",
      "tipoContaBancaria": "3",
      "cnpjGerenciaContaBancaria": "11122233000177",
      "action": "DELETE"
    }
  ]
}
```