Skip to main content
POST
Create a new electronic prescription

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

By default, electronic prescriptions reference existing Blend patients.

medication
object
required

A single medication prescribed. If you need to prescribe multiple medications, use the medications array instead. One of medication or medications is required.

medications
object[]
required

An array of medications prescribed. One of medication or medications is required.

patient
New Patient · object
required

A patient object. If you pass new patient data, a new patient will be created. Or you may reference an existing patient by id or external_id.

prescriber
object
required

Reference to an already-created Blend prescriber.

order
object

An order can be created before or after a prescription is submitted. If created in advance, you may supply the order ID in your prescription.

Response

200 - application/json

Successful response with electronic prescription

id
string<uuid>

Unique identifier

Example:

"0227d1e5-ba9a-42b5-8fe2-38882aa65708"

created_at
string<date-time>

Date and time of creation

Example:

"2025-03-15T12:00:00Z"

updated_at
string<date-time>

Date and time of last update

Example:

"2025-03-15T12:00:00Z"

customer_id
string

Once identified, Blend ID of the customer associated with the patient

Example:

"b658f16f-819c-4503-aede-bd555fc4ebfb"

patient_id
string

Once identified, Blend ID of the patient

prescriber_id
string

Once identified, Blend ID of the prescriber

source
string

Source of the prescription, e.g. api_json

Example:

"api_json"

type
string

Type of electronic prescription, e.g. NewRx

Example:

"NewRx"

medications
object[]

Individual medication details from the electronic prescription

reference_number
string

As imported directly from electronic prescription XML