Create an unpaid prescription order directly

Creates a prescription and order immediately with your supplied unit prices, VAT and shipping fee, bypassing patient checkout. The pharmacy collects payment later; this endpoint never records a completed payment. Currently supports payment at pickup with pickup shipping only. Requires directUnpaidOrderCreationEnabled on your account, an active pharmacy affiliation, and active pickup shipping and payment methods. Pharmacies whose ERP collects patient payments are not supported. This capability does not affect ordinary prescription submission or payment methods available during patient checkout. Signed documents may be submitted now or later. The total to collect must be positive. Each referenceId must be unique for your account; submitting an existing referenceId is rejected, including identical retries. Non-prescription products, discounts and external shipping are not supported.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
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).

Optional patient identifier from your system

Optional pharmacy identifier from your system

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

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
const
enum
required

Payment is collected at the pharmacy using its configured pickup payment method.

Allowed:
Responses

Retry-After seconds.

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