# Estorno Liquidação | 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: 324.157px;"><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: 25.149%; 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.14995%; 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: 67.7011%; height: 29.7969px;">**Informações**</td></tr></thead><tbody><tr style="height: 31.0938px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 25.149%; height: 31.0938px;">`codigoUnidadeOrcamentaria`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.14995%; height: 31.0938px;">✅</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 67.7011%; height: 31.0938px;">Código da **unidade orçamentária** cadastrada pela Unidade Gestora para o exercício</td></tr><tr style="height: 31.0938px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 25.149%; height: 31.0938px;">`numeroEmpenho`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.14995%; height: 31.0938px;">✅</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 67.7011%; height: 31.0938px;">–</td></tr><tr style="height: 31.0938px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 25.149%; height: 31.0938px;">`numeroLiquidacao`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.14995%; height: 31.0938px;">✅</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 67.7011%; height: 31.0938px;">–</td></tr><tr style="height: 31.0938px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 25.149%; height: 31.0938px;">`numeroEstornoLiquidacao`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.14995%; height: 31.0938px;">✅</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 67.7011%; height: 31.0938px;">–</td></tr><tr style="height: 31.0938px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 25.149%; height: 31.0938px;">`dataEstornoLiquidacao`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.14995%; height: 31.0938px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 67.7011%; height: 31.0938px;">–</td></tr><tr style="height: 31.0938px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 25.149%; height: 31.0938px;">`motivoEstornoLiquidacao`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.14995%; height: 31.0938px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 67.7011%; height: 31.0938px;">–</td></tr><tr style="height: 31.0938px;"><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 25.149%; height: 31.0938px;">`valorEstornoLiquidacao`</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top align-center" style="width: 7.14995%; height: 31.0938px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 67.7011%; height: 31.0938px;">–</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: 25.149%; 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.14995%; height: 46.5938px;">–</td><td class="border-b-0.5 border-border-300/30 py-2 pr-4 align-top" style="width: 67.7011%; 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>

<div class="overflow-x-auto w-full px-2 mb-6" id="bkmrk--2"></div>##### **Schema**

```
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Estornos de Liquidação",
  "description": "Schema para envio de estornos de liquidação 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]+$"
          },
          "numeroEstornoLiquidacao": {
            "type": "string",
            "minLength": 7,
            "maxLength": 7,
            "pattern": "^[0-9]+$"
          },
          "dataEstornoLiquidacao": {
            "type": "string",
            "format": "date"
          },
          "motivoEstornoLiquidacao": {
            "type": "string",
            "maxLength": 500
          },
          "valorEstornoLiquidacao": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "action": {
            "type": "string",
            "enum": ["CREATE", "UPDATE", "DELETE"]
          }
        },
        "required": [
          "codigoUnidadeOrcamentaria",
          "numeroEmpenho",
          "numeroLiquidacao",
          "numeroEstornoLiquidacao",
          "dataEstornoLiquidacao",
          "motivoEstornoLiquidacao",
          "valorEstornoLiquidacao",
          "action"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": ["timestamp", "elementos"],
  "additionalProperties": false
}
```

---

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

```
{
  "timestamp": "2026-03-02T11:32:45.123456",
  "elementos": [
    {
      "codigoUnidadeOrcamentaria": "54321",
      "numeroEmpenho": "0000001",
      "numeroLiquidacao": "0000001",
      "numeroEstornoLiquidacao": "0000001",
      "dataEstornoLiquidacao": "2026-03-01",
      "motivoEstornoLiquidacao": "Estorno referente a liquidação emitida com valor incorreto",
      "valorEstornoLiquidacao": 150000.50,
      "action": "CREATE"
    },
    {
      "codigoUnidadeOrcamentaria": "12345",
      "numeroEmpenho": "0000002",
      "numeroLiquidacao": "0000002",
      "numeroEstornoLiquidacao": "0000002",
      "dataEstornoLiquidacao": "2026-03-02",
      "motivoEstornoLiquidacao": "Estorno de liquidação com divergência no valor informado",
      "valorEstornoLiquidacao": 82500.00,
      "action": "UPDATE"
    }
  ]
}
```