---
title: "Cancel a document"
method: DELETE
path: "/v2/doc/{doc_hash_id}"
tags: ["Document V2"]
---

# Cancel a document

`DELETE /v2/doc/{doc_hash_id}`

## Path parameters

- `doc_hash_id` string, required

## Query parameters

- `cancel_einvoice` integer

## Response `200`

Success

- DocResponseV2
  - `success` boolean
  - `message` string — Success Message
  - `error_code` string — Error Code
  - `errors` object — Error details
  - `data` Data
    - `hash_id` string — Hash ID

## Other responses

- `400` — Error
- `401` — Unauthorized
- `404` — Error
- `500` — Server Error

---

[API](https://skmtc.dev/getswipe/apis/swipeapi.md) · [All operations](https://skmtc.dev/getswipe/apis/swipeapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getswipe/swipeapi/revisions/80fcaf1a3463/schema)
