Place Order
To place order with items and its quantity.
Last updated
To place order with items and its quantity.
Last updated
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,"discount_percentage": 5}]"' --form 'patient_id="yxu0Bh1hNM61K3b7t7+vlw=="' --form 'delivery_type="pickup"' --form 'image=@"/C:/Users/91999/Downloads/image (51f8e0f5-d996-4d8e-91bb-752d923d88a6).png"'
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"
address*
String
Address of Patient for delivery (Deprecated: Use address_id instead)
address_line2
String
Address Line 2 for long address (Deprecated: Use address_id instead)
city*
String
City of Patient for delivery (Deprecated: Use address_id instead)
state*
String
State of Patient for delivery (Deprecated: Use address_id instead)
zipcode*
String
Zip code of Patient for delivery (Deprecated: Use address_id instead)
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.