Cancel an accountant task
PUT/accountant-tasks/:code/cancel
Cancel an accountant task (must be in NEW or IN_PROGRESS status). A workflow lifecycle task (accountant_check_invoice, preparation_data_export, transmit_to_fi_tool, transmitted_to_fi_tool_but_no_goods_receipt) cannot be canceled here at all: it follows its invoice through the accounting workflow and is retired by moving the invoice. 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.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 429
- 500
Successfully canceled task
Bad request or task not cancellable
Unauthorized
Forbidden - request denied by authorization, or blocked by the API firewall
Task not found, or outside the caller's legal-entity scope
Task already terminal, or a workflow lifecycle task that cannot be canceled by hand
Too many requests - rate limited by the API firewall; wait out the Retry-After delay before retrying
Response Headers
Delay in seconds a client must wait before retrying the request
Internal server error