---
search:
  tags:
    - Prescriptions
    - GET
seo:
  description: >-
    Any signed in user. Returns one prescription with its medicine… Reference
    for the GET /api/v1/prescriptions/{prescriptionId} endpoint in the
    PharmaFlow API.
sidebar:
  label: Get a prescription
  badge: GET
title: Get a prescription
type: openapi-operation
---
Any signed in user. Returns one prescription with its medicine lines. The lookup is scoped to the caller's branch, so another branch's prescription answers 404.

`GET /api/v1/prescriptions/{prescriptionId}`

**Responses**

- `200` — The prescription
- `401` — Not authenticated
- `404` — Prescription not found

Response example, 200:

```json
{
  "id": "string",
  "branch_id": "string",
  "rx_number": "string",
  "patient_name": "string",
  "patient_id_number": "string",
  "prescriber_name": "string",
  "prescriber_license": "string",
  "status": "string",
  "sale_id": "string",
  "dispensed_by": "string",
  "dispensed_by_name": "string",
  "notes": "string",
  "created_by": "string",
  "created_at": "string",
  "updated_at": "string",
  "dispensed_at": "string",
  "items": [
    {
      "id": "string",
      "prescription_id": "string",
      "medicine_id": "string",
      "quantity": -9007199254740991,
      "dosage_instructions": "string",
      "medicine_name": "string",
      "selling_price": "string",
      "vat_category": "string",
      "requires_prescription": -9007199254740991
    }
  ]
}
```
