---
title: "Unlink Invoice"
method: DELETE
path: "/bank-entry-invoices/{link_id}"
tags: ["reconciliation"]
---

# Unlink Invoice

`DELETE /bank-entry-invoices/{link_id}`

## 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/bank-entry-invoices/{link_id}`
- Auth: none declared

Detach an **imported accounting invoice** from a bank movement.

Removes the settlement plane's invoice link — the plane ``settle_bank_entry``
allocates against. ``link_id`` is the ``link_id`` of a row in ``get_bank_entry``'s
``links.accounting_invoices``. **409** when settlement already posted a payment for
this movement against that invoice's open item: the payment cites the movement as its
evidence, so reverse the payment first. The match status is recomputed afterwards.

## Path parameters

- `link_id` string, required

## Headers

- `authorization` string, nullable

## Cookies

- `access_token` string, nullable

## Response `200`

Successful Response

- MsgResponse: The ``{"msg": "..."}`` envelope — the error contract and many successes.
  - `msg` string, 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)
