---
title: "Deny (provider gate mirrors approve). Terminal; nothing billable exists."
method: POST
path: "/medication-requests/{id}/deny"
tags: ["MedicationRequests"]
---

# Deny (provider gate mirrors approve). Terminal; nothing billable exists.

`POST /medication-requests/{id}/deny`

## Path parameters

- `id` string, required

## Request body

- DenyMedicationRequestDto
  - `reason` string

## Response `200`

OK

- MedicationRequestDto — A medication request with its links and DERIVED billing state (design §5.4 — never stored, always computed from the link chain).
  - `id` string
  - `patientId` string
  - `patientName` string, nullable
  - `clientId` string, nullable
  - `inventoryItemId` string, nullable
  - `medicationName` string, nullable
  - `freeTextMedication` string, nullable
  - `requestedQuantity` union
    - number, double
    - string, double
  - `notes` string, nullable
  - `source` string
  - `isOtc` boolean
  - `fulfillmentMethod` string, nullable
  - `status` string
  - `billingState` string — Derived: none | quoted | quote_removed | unbilled | invoiced | paid. "unbilled" is the "Ready to bill" worklist predicate.
  - `requestedById` string, nullable
  - `requestedByName` string, nullable
  - `requestedAt` string, date-time
  - `approvedById` string, nullable
  - `approvedByName` string, nullable
  - `approvedAt` string, date-time, nullable
  - `deniedById` string, nullable
  - `deniedAt` string, date-time, nullable
  - `denialReason` string, nullable
  - `cancelledById` string, nullable
  - `cancelledAt` string, date-time, nullable
  - `cancelReason` string, nullable
  - `dispensedAt` string, date-time, nullable
  - `prescriptionId` string, nullable
  - `prescriptionItemId` string, nullable
  - `estimateId` string, nullable
  - `estimateLineItemId` string, nullable
  - `invoiceId` string, nullable
  - `renewalOfPrescriptionId` string, nullable
  - `renewalContext` MedicationRequestRenewalContextDto — Prior-prescription context for a renewal request (design §7): what the doctor sees on the approve screen, with server-evaluated refill eligibility.
    - `medicationName` string, nullable
    - `prescriptionStatus` string
    - `refillsAllowed` union
      - integer
      - string, int32
    - `refillsUsed` union
      - integer
      - string, int32
    - `refillsRemaining` union
      - integer
      - string, int32
    - `lastDispensedAt` string, date-time, nullable
    - `validUntil` string, date, nullable
    - `refillEligible` boolean — True when "use a refill" may be chosen at approval.
    - `refillBlockedReason` string, nullable — rx_not_active | schedule_ii | refills_exhausted | rx_expired.
  - `suggestedProviderId` string, nullable
  - `suggestedDosage` string, nullable
  - `suggestedFrequency` string, nullable
  - `suggestedDuration` string, nullable
  - `suggestedInstructions` string, nullable
  - `suggestedRefillsAllowed` union
    - integer
    - string, int32
  - `createdAt` string, date-time
  - `updatedAt` string, date-time

## Other responses

- `403` — Forbidden
- `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/a905bde4e796/schema)
