Submit a prescription

Submit a new prescription order

Body Params
string
required
length ≥ 1

An ID used to identify the prescription. This id should be unique in your system (e.g. internal ID of your treatment/prescription).

string

DEPRECATED: Use signedDocuments instead. Single base64 encoded signed prescription document without MIME-type prefix. If not provided, the signed document must be submitted later via POST /prescriptions/{id}/document before the pharmacy can process the order.

signedDocuments
array of strings
length ≤ 5

Array of base64 encoded signed prescription documents without MIME-type prefix. Can be 0-n documents. If not provided, the signed document must be submitted later via POST /prescriptions/{id}/document before the pharmacy can process the order.

signedDocuments
boolean

Send checkout url to the patient after signed document is submitted or always after the prescription is created. Default sends the email directly.

string
required
length ≥ 1

Cannaflow pharmacy ID. If provided, the patient can only choose this pharmacy for their order. If the pharmacy is out of stock, the prescription cannot be created and an error is thrown.

patient
object
required

Patient information

doctor
object
required

Prescribing doctor's information. Can be also provided by submitting the prescription.

products
array of objects
required

Prescription-required cannabis products (Cannaflow registry item IDs). These are Rx-only items that must be prescribed by a doctor.

products*
nonPrescriptionProducts
array of objects

BETA: Optional array of non-prescription products (standard, addon) that do not require a prescription but should be included in the order. Products will be preselected in checkout page.

nonPrescriptionProducts
string

Prescription date in YYYY-MM-DD format. Current date will be used if not provided

notifications
object

Notification settings. Support for SMS notifications is coming soon.

string

Optional reference to a cannaflow lead

string

Discount code

string

Optional dynamic data attached to the prescription. Structure varies based on source.

Responses

Language
Credentials
Header
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json