Prescriptions
Retrieve prescription information including doctor data and status.Get Prescription Details
string
required
The prescription UID
prescription:read
Example Request
Response
Response Fields
Error Responses
Externally Signed Prescriptions
Prescriptions whose items were created with_skip_validation (or _rxscale_skip_validation) on the Shopify line item, on that item’s line item group (for bundles), or in the order-level additional details — i.e. items without an attached anamnesis — can be signed outside the rxscale platform and then registered for fulfilment via the Management API. When more than one level is present, RxScale resolves the setting with a three-level fallback: the line item’s own value wins first, then the value on its line item group, then the order-level value.
The flow consists of two API calls:
POST /v1/management/prescriptions/{prescription_uid}/render– asks rxscale to render the unsigned prescription PDF. The endpoint returns immediately; the PDF is produced asynchronously and becomes available asprescription.file.POST /v1/management/prescriptions/{prescription_uid}/external-sign– once the PDF is available, mark the prescription asEXTERNALLY_SIGNED, copy the PDF into the signed bucket, and dispatch it to the pharmacy.
Both endpoints require the
prescription:external_sign permission.Render Prescription PDF
string
required
The prescription UID
prescription:external_sign
Triggers asynchronous rendering of the unsigned prescription PDF. The endpoint publishes a prescription.render event and returns 202 Accepted. Poll GET /v1/management/prescriptions/{prescription_uid} (or wait for a webhook) until file is populated before calling external-sign.
Example Request
Response (202 Accepted)
Error Responses
External-Sign Prescription
string
required
The prescription UID
prescription:external_sign
Marks an already-rendered prescription as EXTERNALLY_SIGNED. The endpoint:
- Verifies the prescription is in
WAITING_FOR_DOCTORstatus, all items lack an anamnesis, and the renderedfileis present. - Copies the PDF from the unsigned bucket to the signed-prescription bucket.
- Updates the prescription status to
EXTERNALLY_SIGNEDand writes aPrescriptionLogentry attributed to the calling API key. - Publishes a
pharmacy_manager.send_prescriptionevent so the prescription is dispatched to the pharmacy.