Orders
Create order
cURL
curl --request PUT \
--url 'https://<your-cloudrx-host>/api/v2/Order/create' \
--header 'Authorization: Bearer <access_token>' \
--header 'Content-Type: application/json' \
--data '{
"clinicInformation": { "allProducts": true, "prescriberFeeTypeId": 0, "prescriberFee": 5 },
"deliveryAddress": { "countryCode": "GBR", "postCode": "SW1A1AA" },
"prescription": { "courierCode": 1, "clinicOrderId": "ORD-10001", "paymentType": 1 },
"prescribingDoctor": { "prescriberName": "Doctor Example", "registrationNumber": "GMC1234567" },
"customer": { "dateOfBirth": "1990-01-01T00:00:00Z", "surname": "Doe", "title": 1, "email": "", "telephone": "07123456789" },
"prescribedItems": [
{ "productId": 123, "dmdCode": 456, "pack": 1, "quantity": 1, "medication": "Drug Name", "dosageInstructions": "Take daily", "allowedRepeats": 0 }
]
}'Request body (example)
Success response
Common failures
Create order with clinic registration
cURL
Create order from HL7
cURL
Order status by pharmacy order id
cURL
Order status with clinic code (supplier flow)
cURL
Order status by clinic order id
cURL
Order status by date range
cURL
Cancel order (clinic-scoped)
cURL
Required params
Why clinicCode is mandatory
Success response
Business rules (summary)
Last updated
Was this helpful?