Delete

[POST] .../v1/docperiodclosing/delete

Deletes period closing document. Use this destructive method after DocPeriodClosing/cancelClose has moved the period closing document to the canceled status. Overdue pending documents without a processing schedule can also be deleted. The request body is required, id is required, the caller needs the period closing delete permission and the document must be locked for deletion. The persistent layer rejects deletion when the document is missing, duplicated by data corruption, already deleted or neither canceled nor an overdue pending document without a processing schedule. The response returns row_affected and fires the DocPeriodClosingDeleted webhook; business errors such as missing body, invalid id, denied access, non-deletable state, no matching row or database failures are returned as HTTP 200 ErrorResult.

Request Parameters

Name Type Required Description
id Int64 Required Required period closing document ID.

Request Example

{
  "id": 44
}

Response Parameters

Name Type Description
ok Boolean Indicates whether the request completed successfully.
result Update Update operation result.

Response Example

{
  "ok": true,
  "result": {
    "row_affected": 1
  }
}