payroll

Reverse Payroll Run

Returns the newly created run_kind=reversal run.

post/companies/{company_id}/payroll/runs/{run_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}/payroll/runs/{run_id}/reverse
  • Auth: none declared

Path parameters

company_idstring required
run_idstring required

Headers

authorizationstring nullable

Cookies

access_tokenstring nullable

Request body

posting_datestring date nullable
period_idstring nullable

Response

Successful Response

idstring required
period_startstring date required
period_endstring date required
payment_datestring date nullable
status'draft' | 'calculated' | 'approved' | 'posted' | 'paid' | 'locked' | 'reversed' required

Run lifecycle (payroll SP0; enforced from SP6 via invoiage_core.payroll.states).

run_kind'regular' | 'correction' | 'reversal' required

Run kind: corrections/reversals are separate runs, never in-place edits.

journal_entry_idstring nullable
created_atstring date-time required
calculated_atstring date-time nullable
approved_atstring date-time nullable
posted_atstring date-time nullable
paid_atstring date-time nullable
locked_atstring date-time nullable
payment_batch_refstring nullable
original_run_idstring nullable
reversed_by_run_idstring nullable
validated_atstring date-time nullable
error_countinteger
warning_countinteger
employee_countinteger
gross_totalstring nullable
net_totalstring nullable

Changes

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