Create with clinic
Create order for the customer and register the Clinic if it does not exist in the CloudRx System.
This Api call should also be used by the Clinic System Supplier where they would be sending scripts on behalf of Clinics.
put
Authorizations
Body
affiliateIdstring | nullableOptional
Responses
200
Returns orderId on successfull creation of the order.
application/json
400
Model Validation Errors.
application/json
401
Unauthorized
403
Forbidden
500
CloudRx system is in fault state.
application/json
put
PUT /api/v1/Order/create-with-clinic HTTP/1.1
Host:
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 1024
{
"customer": {
"clinicAccountNumber": 1,
"title": "Mr",
"firstName": "text",
"surname": "text",
"dateOfBirth": "2025-06-24",
"gender": "Male",
"telephone": "text",
"email": "text"
},
"homeAddress": {
"address1": "text",
"address2": "text",
"city": "text",
"county": "text",
"postCode": "text",
"countryCode": "text"
},
"deliveryAddress": {
"address1": "text",
"address2": "text",
"city": "text",
"county": "text",
"postCode": "text",
"countryCode": "text"
},
"prescription": {
"clinicOrderId": "text",
"clinicOrderValue": 1,
"paymentType": "Account",
"repeatsAllowed": 1,
"courierCode": "RMT24",
"currencyCode": "GBP"
},
"prescribedItems": [
{
"productId": 1,
"dmdCode": 1,
"pack": 1,
"medication": "text",
"dosageInstructions": "text",
"quantity": 1
}
],
"prescribingDoctor": {
"registrationNumber": "text",
"prescriberName": "text"
},
"clinicInformation": {
"clinicCode": "text",
"name": "text",
"address1": "text",
"address2": "text",
"address3": "text",
"address4": "text",
"postcode": "text",
"countryCode": "text",
"contactNumber": "text",
"contactEmail": "text",
"prescriberFeeTypeId": 0,
"prescriberFee": 1
},
"affiliateId": "text"
}
{
"orderId": 1
}
Last updated