---
title: "Void Document"
method: POST
path: "/api/v1/documents/{document_id}/void"
tags: ["v1", "documents"]
---

# Void Document

`POST /api/v1/documents/{document_id}/void`

## Request

- Base URL: `https://zsign.io` (the document declares no server; this is the origin it was published from)
- URL: `https://zsign.io/api/v1/documents/{document_id}/void`
- Auth: HTTP bearer

Void the newest signing session for a document. Document-scoped (like
get_document_status above) rather than session-scoped: only the newest
session is ever a candidate, so an older, already-terminal session for
the same document is never walked back to and voided instead.

## Path parameters

- `document_id` string, uuid, required

## Request body

- SessionVoidRequest
  - `reason` string, nullable

## Response `200`

Successful Response

- SessionVoidResponse
  - `session_id` string, uuid, required
  - `document_id` string, uuid, required
  - `status` string, required
  - `voided_at` string, date-time, nullable, required
  - `reason` string, nullable, required
  - `recipients_to_notify` integer, required
  - `credit_refunded` boolean, required
  - `credit_refund_skipped` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zsign/apis/zsign-api.md) · [All operations](https://skmtc.dev/zsign/apis/zsign-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zsign/apis/zsign-api/revisions/a674ac4137ba?raw)
