---
title: "Reverse Gl Journal Entry"
method: POST
path: "/companies/{company_id}/gl/journal-entries/{entry_id}/reverse"
tags: ["gl"]
---

# Reverse Gl Journal Entry

`POST /companies/{company_id}/gl/journal-entries/{entry_id}/reverse`

## Request

- Base URL: `https://app.zeno-works.ch` (the document declares no server; this is the origin it was published from)
- URL: `https://app.zeno-works.ch/companies/{company_id}/gl/journal-entries/{entry_id}/reverse`
- Auth: none declared

**Storno** a posted journal entry: post its mirror image (accountant role).

Nothing is deleted; the original stays, linked both ways, and the **reversal** entry
is returned. The only VAT-correct storno door — VAT postings, open items and what
the document spawned are all unwound.

``body.posting_date`` dates the reversal and decides its period; omitted, it reuses
the original's date and period.

Refusals, in evaluation order — **409** when: the entry is itself a reversal (post a
new correcting entry instead); the reversal date falls in a ``filed``/``paid`` VAT
period (date it into an open one); an open item still carries a live settlement
(unlink or reverse the payment first); or — only with ``posting_date`` — its period
is closed, its fiscal year sealed, or no fiscal year covers it.

## Path parameters

- `company_id` string, required
- `entry_id` string, required

## Headers

- `authorization` string, nullable

## Cookies

- `access_token` string, nullable

## Request body

- GlReverseRequest
  - `posting_date` string, date, nullable

## Response `200`

Successful Response

- GlJournalEntryOut
  - `id` string, required
  - `company_id` string, required
  - `entry_no` integer, nullable
  - `period_id` string, required
  - `posting_date` string, date, required
  - `status` string, required
  - `entry_type` string, required
  - `origin` string, required
  - `description` string, nullable
  - `debit_total_base` string, required
  - `credit_total_base` string, required
  - `line_count` integer, required
  - `version_no` integer, required
  - `reversal_of_entry_id` string, nullable
  - `reversed_by_entry_id` string, nullable
  - `auto_reverse_date` string, date, nullable
  - `coding_guessed` boolean
  - `untagged_subledger_control` boolean
  - `source_ref_type` string, nullable
  - `source_ref_id` string, nullable
  - `source_action` string, nullable
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zeno-works/apis/zeno-api.md) · [All operations](https://skmtc.dev/zeno-works/apis/zeno-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zeno-works/apis/zeno-api/revisions/1eb93dde146c?raw)
