payments

Create Payment Batch

Render + persist a draft pain.001 batch from the selected payables.

201 → the draft batch (nothing downloadable yet — submit + approve first). 422 {"msg": "..."} listing ALL offenders on any invalid/ineligible item, bad debtor, or empty selection.

post/companies/{company_id}/payment-batches

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
  • Auth: none declared

Path parameters

company_idstring required

Headers

authorizationstring nullable

Cookies

access_tokenstring nullable

Request body

item_idsstring[] required
debtor_bank_account_idstring required
execution_datestring date nullable

Response

Successful Response

idstring required
company_idstring required
debtor_bank_account_idstring required
status'draft' | 'pending_approval' | 'approved' | 'exported' | 'cancelled' required

AP payment batch approval lifecycle (doc/pipeline.md §"Exports (accounting hand-off)").

draft → pending_approval → approved → exported (+ cancel from draft/pending/approved — ZENO-231; exported is final). Rejection is a transition back to draft, not a state — the rejected_* audit columns record the last rejection. The XML is downloadable only in approved/exported; the first download stamps approved → exported.

execution_datestring date required
msg_idstring required
nb_of_txsinteger required
ctrl_sumstring required
filenamestring required
created_bystring nullable
created_atstring date-time required
submitted_bystring nullable
submitted_atstring date-time nullable
approved_bystring nullable
approved_atstring date-time nullable
rejected_bystring nullable
rejected_atstring date-time nullable
reject_reasonstring nullable
exported_bystring nullable
exported_atstring date-time nullable
cancelled_bystring nullable
cancelled_atstring date-time nullable

Changes

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