Submit a paid prescription

Submit a paid prescription order. This is used to submit a prescription that has already been paid for in an external system.

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).

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
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.

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 dynamic data attached to the prescription. Structure varies based on source.

products
array of objects
required

Prescribed products with TP-supplied unit gross prices. CannaFlow trusts these prices as-is.

products*
shipping
object
required
paymentDetails
object

Optional details about the payment the patient completed in your system.

Responses

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