---
title: "Full prescription edit. Pre-Dispensed prescriptions are updated in place;
Dispensed prescriptions require a `reason` and the change is recorded
as an amendment. DEA-tracked field changes on a controlled substance are
blocked — caller must cancel-and-recreate instead."
method: POST
path: "/rx/governance/{id}/correct-dispense"
tags: ["RxGovernance"]
---

# Full prescription edit. Pre-Dispensed prescriptions are updated in place;
Dispensed prescriptions require a `reason` and the change is recorded
as an amendment. DEA-tracked field changes on a controlled substance are
blocked — caller must cancel-and-recreate instead.

`POST /rx/governance/{id}/correct-dispense`

## Path parameters

- `id` string, required

## Request body

- CorrectDispenseDto — Correct the quantity of an already-dispensed prescription: reverse what went out and dispense again at the right figure. Distinct from an amendment, which annotates a frozen record and deliberately cannot move stock or money.
  - `quantity` union — The quantity that should have been dispensed.
    - number, double
    - string, double
  - `reason` string — Why the original figure was wrong. Required — this is a controlled correction.
  - `lotId` string, nullable — Lot to re-dispense from. Empty defaults to the lot the original dispense drew from (lot-tracked items), so the printed label keeps its lot number and expiry.
  - `containerId` string, nullable
  - `locationId` string, nullable
  - `witnessUserId` string, nullable

## Response `200`

OK

- CorrectDispenseResultDto
  - `previousQuantity` union
    - number, double
    - string, double
  - `newQuantity` union
    - number, double
    - string, double
  - `transactionId` string, nullable — The replacement dispense's transaction.
  - `dispensesReversed` union
    - integer
    - string, int32

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `409` — Conflict

---

[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/d8d7501dde48/schema)
