Place Order

To place order with items and its quantity.

Place Order

POST {{apiUrl}}patient/orders/place_order

Here is the sample cURL request to place a pick-up online order with prescriptions. Use form data to call the place order API, and push prescriptions in the image param:

Request Body

Name
Type
Description

patient_id*

String

Id to uniquely identify the patient for whom the order is placed

items*

String

Stringified Array of items with quantity (in pills) and medicine_id.

i.e. [{"medicine_id":"Eli4pMFfzobV63G67jtjZw==","quantity": 10, "discount_percentage": 5}]

apikey*

String

Authentication token

delivery_type*

String

Order Delivery type can be pickup or delivery

address_id*

String

Address ID from the address/list API. required in case of the delivery_type is "delivery"

parent_patient_id

String

If billing for family member, then pass parent patient's ID here.

order_status

String

It will save the order in the "draft" status.

image

File

Pass one or more prescription images in FormData.

allowed formats (png/jpg/jpeg)

custom_fields

Object

Key value pairs of attribute_key and it's value. For ex: {"prescription_id": "879", "appointment_id": "123"}

shipping

Number

Shipping charge for delivery (Will round up the given value For ex:

20.5 => 21

20.2 => 20 )

remark

String

Optional field to include any specific notes or instructions associated with the order.

{
    "status_code": "1",
    "status_message": "Order placed successfully",
    "datetime": "2022-12-06 18:46:31",
    "data": {
        "order_id": "/6vMKQj0JOB9GvN+6I27zg==",
        "order_number": "OJLBC8WC1I"
    }
}

Last updated

Was this helpful?