payroll

Unpost Card Transaction

Unpost a posted card transaction: its posting is reversed through the guarded storno door (input VAT mirrored negated, the private open item voided), posting_seq bumps and the transaction returns to matched for re-match and re-post.

body.posting_date dates the reversal; omitted, it reuses the posting's own date. Refusals: 422 while the private part is fed/settled via payroll or its open item carries live allocations; 409 when the reversal date falls in a filed/paid VAT period or a closed accounting period — re-send with a posting_date in an open period to clear it (ZENO-227).

post/companies/{company_id}/expenses/card-transactions/{txn_id}/unpost

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}/expenses/card-transactions/{txn_id}/unpost
  • Auth: none declared

Path parameters

company_idstring required
txn_idstring required

Headers

authorizationstring nullable

Cookies

access_tokenstring nullable

Request body

posting_datestring date nullable

Response

Successful Response

idstring required
card_idstring required
txn_datestring date required
amountstring required
currencystring required
merchantstring nullable required
external_refstring nullable required
status'imported' | 'matched' | 'approved' | 'posted' | 'excluded' required

Company-card transaction lifecycle (SP9; guide §5.3/§5.5): only approved rows reach the GL; excluded keeps fees/adjustments out of expense postings entirely.

classification'business' | 'private' | 'mixed' required

Business/private split of a card transaction (guide §5.5): mixed carries private_amount (business part = amount − private_amount).

private_amountstring nullable required
receipt_item_idstring nullable required
purposestring nullable required
category_idstring nullable required
vat_code_idstring nullable required
dimension_value_idstring nullable required
employee_idstring nullable required
settle_via_payrollboolean required
journal_entry_idstring nullable required
open_item_idstring nullable required
payroll_run_idstring nullable required
settled_atstring date-time nullable required
excluded_reasonstring nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.