# Pagamento

# Pagamento | Schema V1 | 2025 - ∞

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

---

##### **Objeto Raiz**

<figure class="wp-block-table is-style-stripes" id="bkmrk-campo-informa%C3%A7%C3%B5es-ti"><table class="has-fixed-layout" style="width: 100%; height: 118.297px;"><thead><tr style="height: 29.7969px;"><td style="width: 26.3382%; height: 29.7969px;">**Campo**</td><td style="width: 73.6618%; height: 29.7969px;">**Informações**</td></tr></thead><tbody><tr style="height: 63.3906px;"><td style="width: 26.3382%; height: 63.3906px;">`timestamp`</td><td style="width: 73.6618%; height: 63.3906px;">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 **<span style="color: rgb(186, 55, 42);">data mais antiga para a mais recente</span>**</td></tr><tr style="height: 25.1094px;"><td style="width: 26.3382%; height: 25.1094px;">`elementos`</td><td style="width: 73.6618%; height: 25.1094px;">–</td></tr></tbody></table>

</figure>---

##### **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: 617.516px;"><thead><tr style="height: 29.7969px;"><td class="text-text-100 border-b-0.5 border-border-300/60 py-2 pr-4 align-top font-bold" style="width: 31.8236%; height: 29.7969px;">**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: 7.3889%; height: 29.7969px;">**Chave**</td><td class="text-text-100 border-b-0.5 border-border-300/60 py-2 pr-4 align-top font-bold" style="width: 60.7875%; height: 29.7969px;">**Informações**</td></tr></thead><tbody><tr style="height: 30.6094px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 31.8236%; height: 30.6094px;">`codigoUnidadeOrcamentaria`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.3889%; height: 30.6094px;">✅</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 60.7875%; height: 30.6094px;">Código da **unidade orçamentária** cadastrada pela Unidade Gestora para o exercício</td></tr><tr style="height: 30.6094px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 31.8236%; height: 30.6094px;">`numeroEmpenho`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.3889%; height: 30.6094px;">✅</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 60.7875%; height: 30.6094px;">–</td></tr><tr style="height: 30.6094px;"><td style="width: 31.8236%; height: 30.6094px;">`numeroLiquidacao`</td><td class="align-center" style="width: 7.3889%; height: 30.6094px;">✅</td><td style="width: 60.7875%; height: 30.6094px;">–</td></tr><tr style="height: 30.6094px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 31.8236%; height: 30.6094px;">`numeroPagamento`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.3889%; height: 30.6094px;">✅</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 60.7875%; height: 30.6094px;">–</td></tr><tr style="height: 30.6094px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 31.8236%; height: 30.6094px;">`dataPagamento`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.3889%; height: 30.6094px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 60.7875%; height: 30.6094px;">–</td></tr><tr style="height: 30.6094px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 31.8236%; height: 30.6094px;">`valorPagamento`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.3889%; height: 30.6094px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 60.7875%; height: 30.6094px;">–</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: 31.8236%; height: 46.5938px;">`codigoFonteRecurso`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.3889%; height: 46.5938px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 60.7875%; height: 46.5938px;">Definido pela Secretaria do Tesouro Nacional e disponibilizada pela Matriz de Saldos Contábeis - MSC</td></tr><tr style="height: 30.6094px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 31.8236%; height: 30.6094px;">`exercicioFonteRecurso`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.3889%; height: 30.6094px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 60.7875%; height: 30.6094px;">`Atual` / `Anterior`</td></tr><tr style="height: 30.6094px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 31.8236%; height: 30.6094px;">`codigoBancoContaBancaria`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.3889%; height: 30.6094px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 60.7875%; height: 30.6094px;">Código da FEBRABAN</td></tr><tr style="height: 30.6094px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 31.8236%; height: 30.6094px;">`numeroContaBancaria`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.3889%; height: 30.6094px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 60.7875%; height: 30.6094px;">Conta bancária cadastrada pela Unidade Gestora para o exercício</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: 31.8236%; 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: 7.3889%; height: 35.3906px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 60.7875%; 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.6094px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 31.8236%; height: 30.6094px;">`numeroAgenciaContaBancaria`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.3889%; height: 30.6094px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 60.7875%; height: 30.6094px;">Conta bancária cadastrada pela Unidade Gestora para o exercício</td></tr><tr style="height: 30.6094px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 31.8236%; height: 30.6094px;">`cnpjGerenciaContaBancaria`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.3889%; height: 30.6094px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 60.7875%; height: 30.6094px;">–</td></tr><tr style="height: 30.6094px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 31.8236%; height: 30.6094px;">`numeroDocumentoDebito`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.3889%; height: 30.6094px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 60.7875%; height: 30.6094px;">–</td></tr><tr style="height: 30.6094px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 31.8236%; height: 30.6094px;">`codigoBancoContaBancariaCredito`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.3889%; height: 30.6094px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 60.7875%; height: 30.6094px;">Código da FEBRABAN</td></tr><tr style="height: 30.6094px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 31.8236%; height: 30.6094px;">`numeroAgenciaContaBancariaCredito`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.3889%; height: 30.6094px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 60.7875%; height: 30.6094px;">Conta do credor do pagamento (adicionar para as outras)</td></tr><tr style="height: 30.6094px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 31.8236%; height: 30.6094px;">`numeroContaBancariaCredito`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.3889%; height: 30.6094px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 60.7875%; height: 30.6094px;">–</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: 31.8236%; 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: 7.3889%; height: 46.5938px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 60.7875%; height: 46.5938px;">Define a operação a ser realizada com a informação, seja ela c**riação, atualização ou exclusão**</td></tr></tbody></table>

##### **Schema**

```
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Pagamentos",
  "description": "Schema para envio de pagamentos 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": {
          "codigoUnidadeOrcamentaria": {
            "type": "string",
            "minLength": 5,
            "maxLength": 5,
            "pattern": "^[0-9]+$"
          },
          "numeroEmpenho": {
            "type": "string",
            "minLength": 7,
            "maxLength": 7,
            "pattern": "^[0-9]+$"
          },
          "numeroLiquidacao": {
            "type": "string",
            "minLength": 7,
            "maxLength": 7,
            "pattern": "^[0-9]+$"
          },
          "numeroPagamento": {
            "type": "string",
            "minLength": 7,
            "maxLength": 7,
            "pattern": "^[0-9]+$"
          },
          "dataPagamento": {
            "type": "string",
            "format": "date"
          },
          "valorPagamento": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "codigoFonteRecurso": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3,
            "pattern": "^[0-9]+$"
          },
          "exercicioFonteRecurso": {
            "type": "string",
            "enum": ["ATUAL", "ANTERIOR"]
          },
          "codigoBancoContaBancaria": {
            "type": "string",
            "maxLength": 3
          },
          "numeroContaBancaria": {
            "type": "string",
            "maxLength": 13
          },
          "tipoContaBancaria": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1,
            "pattern": "^[0-9]+$"
          },
          "numeroAgenciaContaBancaria": {
            "type": "string",
            "maxLength": 6
          },
          "cnpjGerenciaContaBancaria": {
            "type": "string",
            "minLength": 14,
            "maxLength": 14
          },
          "numeroDocumentoDebito": {
            "type": "string",
            "maxLength": 11
          },
          "codigoBancoContaBancariaCredito": {
            "type": "string",
            "maxLength": 3
          },
          "numeroAgenciaContaBancariaCredito": {
            "type": "string",
            "maxLength": 6
          },
          "numeroContaBancariaCredito": {
            "type": "string",
            "maxLength": 13
          },
          "action": {
            "type": "string",
            "enum": ["CREATE", "UPDATE", "DELETE"]
          }
        },
        "required": [
          "codigoUnidadeOrcamentaria",
          "numeroEmpenho",
          "numeroLiquidacao",
          "numeroPagamento",
          "dataPagamento",
          "valorPagamento",
          "codigoFonteRecurso",
          "exercicioFonteRecurso",
          "codigoBancoContaBancaria",
          "numeroContaBancaria",
          "tipoContaBancaria",
          "numeroAgenciaContaBancaria",
          "cnpjGerenciaContaBancaria",
          "numeroDocumentoDebito",
          "codigoBancoContaBancariaCredito",
          "numeroAgenciaContaBancariaCredito",
          "numeroContaBancariaCredito",
          "action"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": ["timestamp", "elementos"],
  "additionalProperties": false
}
```

---

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

```
{
  "timestamp": "2025-09-11T15:30:00.123456",
  "pagamentos": [
    {
      "codigoUnidadeOrcamentaria": "17050",
      "numeroEmpenho": "0001234",
      "numeroLiquidacao": "0000001",
      "numeroPagamento": "0000001",
      "dataPagamento": "2025-09-11",
      "valorPagamento": 15000.00,
      "codigoFonteRecurso": "100",
      "exercicioFonteRecurso": "ATUAL",
      "codigoBancoContaBancaria": "001",
      "numeroContaBancaria": "12345678901",
      "tipoContaBancaria": "1",
      "numeroAgenciaContaBancaria": "1234",
      "cnpjGerenciaContaBancaria": "12345678000195",
      "numeroDocumentoDebito": "12345678901",
      "codigoBancoContaBancariaCredito": "341",
      "numeroAgenciaContaBancariaCredito": "5678",
      "numeroContaBancariaCredito": "98765432100",
      "action": "CREATE"
    }
  ]
}
```