---
title: "Cancel existing document"
method: POST
path: "/accounting/documents/cancel/"
tags: ["Accounting (Documents)"]
---

# Cancel existing document

`POST /accounting/documents/cancel/`

## Headers

- `Content-Language` unknown

## Request body

- AccountingDocumentsCancelRequest
  - `Credentials` CoreAPICredentials, required
    - `CompanyID` integer, required — Company identifier
    - `APIKey` string, required — API key secret
  - `DocumentID` integer, required — Cancelled document identifier
  - `Description` string, required — Cancel description (reason)

## Response `200`

OK

- ResponseAccountingDocumentsCancelResponse
  - `Status` 'Success (0)' | 'BusinessError (1)' | 'TechnicalError (2)'
  - `UserErrorMessage` string, nullable — Error message, in a user readable format
  - `TechnicalErrorDetails` string, nullable — Technical error details, let us know if you received this.
  - `Data` AccountingDocumentsCancelResponse
    - `DocumentID` integer — Cancel document identifier
    - `DocumentNumber` integer, nullable — Document number
    - `DocumentDownloadURL` string, nullable — Document download URL Produced document will be original (on first fetching), or certified copy.

---

[API](https://skmtc.net/myofficeguy/apis/sumit-api-full.md) · [All operations](https://skmtc.net/myofficeguy/apis/sumit-api-full/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myofficeguy/sumit-api-full/versions/de2902289b3a/schema)
