---
title: "Reverse Gl Payment"
method: POST
path: "/companies/{company_id}/gl/payments/{payment_id}/reverse"
tags: ["gl-actions"]
---

# Reverse Gl Payment

`POST /companies/{company_id}/gl/payments/{payment_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/payments/{payment_id}/reverse`
- Auth: none declared

Reverse a payment: mirror JE, allocations + payment marked ``reversed``,
open items rebuilt. ``payment_id`` is the **gl_payment id** (from
``GET/POST /gl/payments`` — ``GlPaymentOut.id``), **not** the journal-entry
id; a payment entry's ``journal_entry_id`` is listed alongside it.

## Path parameters

- `company_id` string, required
- `payment_id` string, required

## Headers

- `authorization` string, nullable

## Cookies

- `access_token` string, nullable

## Response `200`

Successful Response

- GlPostResult
  - `journal_entry_id` string, nullable
  - `journal_entry_ids` string[]

## 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)
