Place Order

To place order with items and its quantity.

Place Order

POST https://api.evitalrx.in/v1/fulfillment/orders/place_order

Request Body

NameTypeDescription

patient_id*

String

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

if mobile is provided, then patient_id is optional.

items*

String

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

i.e. [{"medicine_id":"Eli4pMFfzobV63G67jtjZw==","quantity": 2}]

apikey*

String

Authentication token

delivery_type*

String

Order Delivery type can be pickup or delivery

address*

String

Address of Patient for delivery. required if delivery_type is delivery

address_line2

String

Address Line 2 for long address

city*

String

City of Patient for delivery

state*

String

State of Patient for delivery

zipcode*

String

Zip code of Patient for delivery

mobile

String

Patient's mobile no is optional if patient_id is provided, required otherwise.

patient_name

String

Patient's name is optional if patient_id is provided, required otherwise.

latitude

Number

Latitude of the patient to search in nearby pharmacies.

longitude

Number

Longitude of the patient to search in the nearby pharmacies.

full_address

String

Required If lat-long is not provided. This address is used to get the lat-long to find the nearest pharmacy store.

Only zipcode can also by passed in this param

like { "full_address": "560008" }

{
    "status_code": "1",
    "status_message": "Order placed successfully",
    "datetime": "2023-02-14 19:23:51",
    "data": {
        "order_id": "FjauqxGgQYVpkl57jXYMhg==",
        "order_number": "OQLE4B1Z8F",
        "total": 111,
        "thankyou_msg_first": "Thank You",
        "thankyou_msg_second": "Your order has been placed to ",
        "pharmacy_name": "API medicals"
    }
}

Last updated