# Cancel Invoice Accepts a JSON payload to Set Invoice as Cancel. Endpoint: POST /rest/v1/documents/cancel Version: v1.0.0 Security: ## Request fields (application/json): - `documentId` (string, required) The unique identifier of the invoice document. Example: "6787a98e15306d37eed688a8" - `reason` (string) The reason for setting the invoice status. Example: "Payment received" ## Response 201 fields (application/json): - `statusCode` (integer, required) Http status code of the response. Example: 200 - `resultMessage` (string, required) Result message. Example: "Company registered successfully." ## Response 400 fields (application/json): - `statusCode` (integer, required) Http status code of the response. Example: 200 - `resultMessage` (string, required) Result message. Example: "Company registered successfully." ## Response 401 fields (application/json): - `statusCode` (integer, required) Http status code of the response. Example: 200 - `resultMessage` (string, required) Result message. Example: "Company registered successfully." ## Response 500 fields (application/json): - `statusCode` (integer, required) Http status code of the response. Example: 200 - `resultMessage` (string, required) Result message. Example: "Company registered successfully."