# Empenho | 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: 85.2969px;"><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: 25.3906px;"><td style="width: 26.3382%; height: 25.3906px;">`timestamp`</td><td style="width: 73.6618%; height: 25.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: 30.1094px;"><td style="width: 26.3382%; height: 30.1094px;">`elementos`</td><td style="width: 73.6618%; height: 30.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: 1030.63px;"><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: 26.4601%; 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 align-center" style="width: 7.86651%; 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: 65.6734%; 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: 26.4601%; 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.86651%; height: 30.6094px;">✅</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 65.6734%; 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: 26.4601%; 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.86651%; height: 30.6094px;">✅</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 65.6734%; height: 30.6094px;">–</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.4601%; height: 35.3906px;">`tipoEmpenho`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.86651%; height: 35.3906px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 65.6734%; height: 35.3906px;">**[Tabela Tipo Empenho](https://docs.tcepb.tc.br/books/tabelas-de-dominio/page/tipo-empenho)**</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: 26.4601%; height: 30.6094px;">`dataEmpenho`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.86651%; height: 30.6094px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 65.6734%; 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: 26.4601%; height: 30.6094px;">`valorEmpenho`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.86651%; height: 30.6094px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 65.6734%; 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: 26.4601%; height: 30.6094px;">`codigoPrograma`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.86651%; height: 30.6094px;">–</td><td style="width: 65.6734%; height: 30.6094px;">Código do **programa** cadastrado 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: 26.4601%; height: 30.6094px;">`codigoAcao`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.86651%; height: 30.6094px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 65.6734%; height: 30.6094px;">Código da **ação** cadastrado pela Unidade Gestora para o exercício</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.4601%; height: 46.5938px;">`codigoFuncao`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.86651%; height: 46.5938px;">–</td><td style="width: 65.6734%; height: 46.5938px;">Definido pela Secretaria do Tesouro Nacional e disponibilizada pela Matriz de Saldos Contábeis - MSC </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.4601%; height: 46.5938px;">`codigoSubfuncao`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.86651%; height: 46.5938px;">–</td><td style="width: 65.6734%; height: 46.5938px;">Definido pela Secretaria do Tesouro Nacional e disponibilizada pela Matriz de Saldos Contábeis - MSC </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.4601%; height: 46.5938px;">`codigoCategoriaEconomica`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.86651%; height: 46.5938px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 65.6734%; height: 46.5938px;">Definido pela Secretaria do Tesouro Nacional e disponibilizada pela Matriz de Saldos Contábeis - MSC </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.4601%; height: 46.5938px;">`codigoNaturezaDespesa`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.86651%; height: 46.5938px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 65.6734%; height: 46.5938px;">Definido pela Secretaria do Tesouro Nacional e disponibilizada pela Matriz de Saldos Contábeis - MSC </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.4601%; height: 46.5938px;">`codigoModalidadeDespesa`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.86651%; height: 46.5938px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 65.6734%; height: 46.5938px;">Definido pela Secretaria do Tesouro Nacional e disponibilizada pela Matriz de Saldos Contábeis - MSC </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.4601%; height: 46.5938px;">`codigoElementoDespesa`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.86651%; height: 46.5938px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 65.6734%; height: 46.5938px;">Definido pela Secretaria do Tesouro Nacional e disponibilizada pela Matriz de Saldos Contábeis - MSC </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.4601%; height: 46.5938px;">`codigoSubelementoDespesa`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.86651%; height: 46.5938px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 65.6734%; height: 46.5938px;">Definido pela Secretaria do Tesouro Nacional e disponibilizada pela Matriz de Saldos Contábeis - MSC </td></tr><tr style="height: 46.5938px;"><td style="width: 26.4601%; height: 46.5938px;">`codigoCO`</td><td class="align-center" style="width: 7.86651%; height: 46.5938px;">–</td><td style="width: 65.6734%; height: 46.5938px;">Definido pela Secretaria do Tesouro Nacional e disponibilizada pela Matriz de Saldos Contábeis - MSC</td></tr><tr><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 26.4601%; 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.86651%; height: 46.5938px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 65.6734%; height: 46.5938px;">Definido pela Secretaria do Tesouro Nacional e disponibilizada pela Matriz de Saldos Contábeis - MSC</td></tr><tr style="height: 30.7969px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 26.4601%; height: 30.7969px;">`exercicioFonteRecurso`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.86651%; height: 30.7969px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 65.6734%; height: 30.7969px;">`Atual` / `Anterior`</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.4601%; height: 35.3906px;">`naturezaContratacao`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.86651%; height: 35.3906px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 65.6734%; height: 35.3906px;">**[Tabela Natureza Contratação](https://docs.tcepb.tc.br/books/tabelas-de-dominio/page/natureza-contratacao)**</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.4601%; height: 35.3906px;">`modalidadeLicitacao`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.86651%; height: 35.3906px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 65.6734%; height: 35.3906px;">**[Tabela Modalidade Licitação](https://docs.tcepb.tc.br/books/tabelas-de-dominio/page/modalidade-licitacao)**</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: 26.4601%; height: 30.6094px;">`numeroObra`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.86651%; height: 30.6094px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 65.6734%; 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: 26.4601%; height: 30.6094px;">`numeroLicitacao`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.86651%; height: 30.6094px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 65.6734%; 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: 26.4601%; height: 30.6094px;">`historico`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.86651%; height: 30.6094px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 65.6734%; 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: 26.4601%; height: 30.6094px;">`cpfCnpjFornecedor`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.86651%; height: 30.6094px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 65.6734%; height: 30.6094px;">CPF/CNPJ do **fornecedor** cadastrado 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: 26.4601%; height: 30.6094px;">`cpfOrdenador`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.86651%; height: 30.6094px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 65.6734%; height: 30.6094px;">CPF do **ordenador** cadastrado pela Unidade Gestora para o exercício</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.4601%; 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.86651%; height: 46.5938px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 65.6734%; 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": "Empenhos",
  "description": "Schema para envio de empenhos 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]+$"
          },
          "tipoEmpenho": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1,
            "pattern": "^[0-9]+$"
          },
          "dataEmpenho": {
            "type": "string",
            "format": "date"
          },
          "valorEmpenho": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "codigoFuncao": {
            "type": "string",
            "minLength": 2,
            "maxLength": 2,
            "pattern": "^[0-9]+$"
          },
          "codigoSubfuncao": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3,
            "pattern": "^[0-9]+$"
          },
          "codigoPrograma": {
            "type": "string",
            "minLength": 4,
            "maxLength": 4,
            "pattern": "^[0-9]+$"
          },
          "codigoAcao": {
            "type": "string",
            "minLength": 4,
            "maxLength": 4,
            "pattern": "^[0-9]+$"
          },
          "codigoCategoriaEconomica": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1,
            "pattern": "^[0-9]+$"
          },
          "codigoNaturezaDespesa": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1,
            "pattern": "^[0-9]+$"
          },
          "codigoModalidadeDespesa": {
            "type": "string",
            "minLength": 2,
            "maxLength": 2,
            "pattern": "^[0-9]+$"
          },
          "codigoElementoDespesa": {
            "type": "string",
            "minLength": 2,
            "maxLength": 2,
            "pattern": "^[0-9]+$"
          },
          "codigoSubelementoDespesa": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3,
            "pattern": "^[0-9]+$"
          },
          "codigoCO": {
            "type": "string",
            "minLength": 4,
            "maxLength": 4,
            "pattern": "^[0-9]+$"
          },
          "exercicioFonteRecurso": {
            "type": "string",
            "enum": ["ATUAL", "ANTERIOR"]
          },
          "codigoFonteRecurso": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3,
            "pattern": "^[0-9]+$"
          },
          "naturezaContratacao": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1,
            "pattern": "^[0-9]+$"
          },
          "modalidadeLicitacao": {
            "type": "string",
            "minLength": 2,
            "maxLength": 2,
            "pattern": "^[0-9]+$"
          },
          "numeroObra": {
            "type": "string",
            "minLength": 8,
            "maxLength": 8
          },
          "numeroLicitacao": {
            "type": "string",
            "minLength": 9,
            "maxLength": 9,
            "pattern": "^[0-9]+$"
          },
          "historico": {
            "type": "string",
            "maxLength": 4000
          },
          "cpfCnpjFornecedor": {
            "type": "string",
            "minLength": 11,
            "maxLength": 14
          },
          "cpfOrdenador": {
            "type": "string",
            "minLength": 11,
            "maxLength": 11,
            "pattern": "^[0-9]+$"
          },
          "action": {
            "type": "string",
            "enum": ["CREATE", "UPDATE", "DELETE"]
          }
        },
        "required": [
          "codigoUnidadeOrcamentaria",
          "numeroEmpenho",
          "tipoEmpenho",
          "dataEmpenho",
          "valorEmpenho",
          "codigoFuncao",
          "codigoSubfuncao",
          "codigoPrograma",
          "codigoAcao",
          "codigoCategoriaEconomica",
          "codigoNaturezaDespesa",
          "codigoModalidadeDespesa",
          "codigoElementoDespesa",
          "codigoSubelementoDespesa",
          "codigoCO",
          "exercicioFonteRecurso",
          "codigoFonteRecurso",
          "naturezaContratacao",
          "historico",
          "cpfCnpjFornecedor",
          "cpfOrdenador",
          "action"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": ["timestamp", "elementos"],
  "additionalProperties": false
}
```

---

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

```
{
  "timestamp": "2025-09-11T15:30:00.123456",
  "elementos": [
    {
      "codigoUnidadeOrcamentaria": "17050",
      "numeroEmpenho": "0001234",
      "tipoEmpenho": "1",
      "dataEmpenho": "2025-09-11",
      "valorEmpenho": 15000.00,
      "codigoFuncao": "12",
      "codigoSubfuncao": "361",
      "codigoPrograma": "2080",
      "codigoAcao": "2050",
      "codigoCategoriaEconomica": "3",
      "codigoNaturezaDespesa": "3",
      "codigoModalidadeDespesa": "90",
      "codigoElementoDespesa": "39",
      "codigoSubelementoDespesa": "014",
      "codigoCO": "0001",
      "exercicioFonteRecurso": "ATUAL",
      "codigoFonteRecurso": "100",
      "naturezaContratacao": "1",
      "modalidadeLicitacao": "06",
      "numeroObra": "00012345",
      "numeroLicitacao": "000012025",
      "historico": "Empenho referente à contratação de serviços de manutenção predial conforme processo administrativo nº 001/2025.",
      "cpfCnpjFornecedor": "12345678000195",
      "cpfOrdenador": "12345678901",
      "action": "CREATE"
    },
    {
      "codigoUnidadeOrcamentaria": "17050",
      "numeroEmpenho": "0001235",
      "tipoEmpenho": "1",
      "dataEmpenho": "2025-09-11",
      "valorEmpenho": 8500.50,
      "codigoFuncao": "12",
      "codigoSubfuncao": "361",
      "codigoPrograma": "2080",
      "codigoAcao": "2050",
      "codigoCategoriaEconomica": "3",
      "codigoNaturezaDespesa": "3",
      "codigoModalidadeDespesa": "90",
      "codigoElementoDespesa": "39",
      "codigoSubelementoDespesa": "014",
      "codigoCO": "0001",
      "exercicioFonteRecurso": "ATUAL",
      "codigoFonteRecurso": "100",
      "naturezaContratacao": "1",
      "modalidadeLicitacao": "06",
      "numeroLicitacao": "000012025",
      "historico": "Empenho referente à aquisição de material de escritório conforme processo administrativo nº 002/2025.",
      "cpfCnpjFornecedor": "98765432000110",
      "cpfOrdenador": "12345678901",
      "action": "CREATE"
    }
  ]
}
```