Skip to main content
An order containing a prescription product can’t be filled until an active, non-expired prescription with fills remaining is attached to it. GET /api/v1/orders?has_unmatched_prescriptions=true returns exactly the orders in that state, so you can chase the missing prescriptions before they become stuck orders. The mirror-image query — prescriptions that haven’t been attached to any order — is GET /api/v1/prescriptions?has_order=false.

Find the gap from the order side

Each returned order includes prescription_count and its products, so you can see which line is unaccounted for.

And from the prescription side

has_order only supports false. There is no has_order=true — to find prescriptions that do have orders, query the patient’s orders directly with GET /patients/{patient_id}/orders.

Narrow it down

The prescriptions list accepts filters that isolate exactly what’s broken:
Passing null to patient_id, prescription_product_id, or prescriber_id finds prescriptions where that link is missing — which usually tells you why the order is unmatched, not just that it is.

Fixing what you find

If the prescription genuinely never arrived, send it. If it did arrive but didn’t match, the Blend team will typically find and address the issue (the problem is nearly always the product or patient match). See how matching works and why Blend can’t find a prescription you sent.

Get orders

has_unmatched_prescriptions=true

Get prescriptions

has_order=false, patient_id=null

Get a patient's orders

GET /patients/patient_id/orders

Get a patient's prescriptions

GET /patients/patient_id/prescriptions