Cancel Payment Batch
draft | pending_approval | approved → cancelled (accountant, ZCT-257).
approved since ZENO-231: the release re-check can refuse an approved batch, and nothing leaves Zeno before the first download, so cancel is its exit. exported is final. Cancelling an approved batch withdraws its vouching for later batches' first-time-supplier flags (warn-only; not recomputed).
Was member-level on the reasoning that nothing has moved money before approval — a deliberate divergence from payroll's accountant-gated cancel. The owner withdrew that on 2026-08-31, and the divergence goes with it: both cancels are accountant now.
⚠️ Note what the old rationale claimed and the code never did. It said "a member may withdraw their own not-yet-approved batch"; there is no author scoping anywhere on this path — repo.get_batch filters on company_id and id alone, and created_by is written at creation and read by nothing. Before this gate, any member could cancel any other member's pending_approval batch seconds before approval. The role gate closes it for members; author scoping is still the right fix and is filed.
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}/payment-batches/{batch_id}/cancel
- Auth: none declared
Path parameters
Headers
Cookies
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.