Create

Create order for the customer.

put
Authorizations
Body
affiliateIdstring | nullableOptional
Responses
200
Returns orderId on successfull creation of the order.
application/json
put
PUT /api/v1/Order/create 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