Skip to main content

Mark an accountant task as done

PUT 

/accountant-tasks/:code/done

Transition an accountant task to the DONE status. For an invoice_without_po task, send resolution_reason (resolved_externally, not_an_invoice, duplicate) to record the resolution path on the task. Omit it for a plain completion. assigned_to_po is not accepted: the match flow closes the task server-side and records that path itself. Restricted to the legal entities the caller reaches through their organizational units: a task belonging to any other entity, and a task belonging to none, answers 404 exactly like an unknown code. ADMIN is unrestricted. Two rules gate an active task on top of that scope: the four-eyes rule refuses the requester or buyer of the purchase, and a task assigned to somebody else must be claimed before it can be completed. Neither applies to a task already in a terminal status, so completing an already-DONE task stays an idempotent no-op.

Request​

Responses​

Successfully completed task