accounting-settings

Retry Accounting Document

Re-queue a failed accounting document for re-processing (recover by id).

Recovers from a processing failure (notably fiscal_year_undeterminable) without re-uploading bytes — the staged sha256 bytes persist. CompanyMember, scoped via the loaded row (404 missing / 403 out of scope). The optional fiscal_year body field (1900–2200; 422 otherwise) sets fiscal_year_hint before re-queueing; omitting it preserves the existing hint for a plain retry. failed → pending (202); pending/processing → returned as-is (idempotent); done → 409.

Accountant/owner (ZCT-257): a retry re-runs extraction — a fresh billed analysis whose result lands in the books. The row is loaded before the gate so it has a company_id, keeping the same 404-missing / 403-out-of-scope split.

post/accounting-documents/{document_id}/retry

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/accounting-documents/{document_id}/retry
  • Auth: none declared

Path parameters

document_idstring required

Headers

authorizationstring nullable

Cookies

access_tokenstring nullable

Request body

fiscal_yearinteger nullable

Response

Successful Response

idstring required
company_idstring required
sha256string required
filenamestring required
content_typestring nullable
sizeinteger nullable
fiscal_year_hintinteger nullable
uploaded_bystring nullable
status'pending' | 'processing' | 'done' | 'failed' required
errorstring nullable
doc_types_foundstring[] nullable
result_summaryobject nullable
created_atstring date-time required
processed_atstring date-time nullable

Changes

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