Place Order

To place order with items and its quantity.

Place Order

POST https://api.evitalrx.in/v1/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.

more than 1 prescription is accepted. prescription can also be sent in the delivery orders. Copy & paste the below request in the postman, then any language code snippets can be generated with it.

curl --location 'https://api.evitalrx.in/v1/patient/orders/place_order' --form 'apikey="***********************"' --form 'items="[{"medicine_id":"gv0GokYn9w4zFL51eouS2g==","quantity":50}]"' --form 'patient_id="yxu0Bh1hNM61K3b7t7+vlw=="' --form 'delivery_type="pickup"' --form 'image=@"/C:/Users/91999/Downloads/image (51f8e0f5-d996-4d8e-91bb-752d923d88a6).png"'

Request Body

NameTypeDescription

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}]

apikey*

String

Authentication token

delivery_type*

String

Order Delivery type can be pickup or delivery

address*

String

Address of Patient for 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

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)

{
    "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