---
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`

## 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

---

[API](https://skmtc.net/clinicos/apis/pawthosx-business-api-v1.md) · [All operations](https://skmtc.net/clinicos/apis/pawthosx-business-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clinicos/pawthosx-business-api-v1/revisions/a905bde4e796/schema)
