---
title: "Void a performed-and-dispensed estimate line: reverse the dispense (restore the lot, write a Returned transaction, file a DEA correction for controlled substances, cancel any tied Rx), then remove the line. Falls through to a plain delete when there is no dispense to undo. Anchors entirely on the line's `InventoryTransactionId`."
method: POST
path: "/Estimates/{id}/items/{lineId}/void"
tags: ["Estimates"]
---

# Void a performed-and-dispensed estimate line: reverse the dispense (restore the lot, write a Returned transaction, file a DEA correction for controlled substances, cancel any tied Rx), then remove the line. Falls through to a plain delete when there is no dispense to undo. Anchors entirely on the line's \`InventoryTransactionId\`.

`POST /Estimates/{id}/items/{lineId}/void`

## Request

- Base URL: `https://api.clinicos.vet/backend/business`
- URL: `https://api.clinicos.vet/backend/business/Estimates/{id}/items/{lineId}/void`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/docs/Estimates/:id/items/:lineId/void/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required
- `lineId` string, required

## Request body

- VoidEstimateItemRequest
  - `reason` string, nullable: Required when voiding a controlled-substance dispense (DEA correction).

## Response `200`

OK

- VoidEstimateItemResponse
  - `inventoryReversed` boolean
  - `deaCorrectionCreated` boolean
  - `prescriptionsCancelled` union
    - integer
    - string, int32
  - `vaccinationsVoided` union: Vaccination records retracted by this void. Non-zero means a dose came off the patient's chart — worth surfacing, since it changes what the patient is considered protected against.
    - integer
    - string, int32

## Changes

- **2026-08-07** `a905bde4e796`: 3 info
  - added the optional property `vaccinationsVoided` to the response with the `200` status (media type: text/plain)
  - added the optional property `vaccinationsVoided` to the response with the `200` status (media type: application/json)
  - added the optional property `vaccinationsVoided` to the response with the `200` status (media type: text/json)

[Operation history](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/changes/Estimates/:id/items/:lineId/void/post.md)

---

[API](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1.md) - [All operations](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/revisions/099cf36186e0?raw)
