Save
To save the order.
Save
POST
{{apiUrl}}doctor/orders/save
If the order is made with batch through push_prescription API, It can be saved by this API. This removes the headache of the integration partners, who don't want their chemists to switch 2 portals. Their portal to make drafts, and eVitalRx portal to save the order.
Request Body
patient_id*
String
Id to uniquely identify the patient for whom the order is placed
items*
Stringified Array
List of items with quantity (in pills).
All the params are required shown below.
Medicine Id and batch should have unique combination.
i.e. [{ "medicine_id": "vjalpzMV0E33BLwzzLR6fQ==", "batch": "FRESH", "expiry": "2025-12-01", "mrp": 36.1, "quantity": 2, "discount": 0, "gst_percentage": 12, "cess_percentage": 0}]
apikey*
String
Authentication token
patient_name*
String
Name of the Patient
shipping
String
Extra charges in the order.
delivery_type
String
Must be one of pickup or delivery. default is pickup.
remark
String
Note for the Prescription. This param is also available in the Order Details.
order_id*
String
Order ID from the response of push_prescription API.
order_date*
String
Date of the bill.
Format: YYYY-MM-DD
parent_patient_id
String
If billing for family member, then pass parent patient's ID here.
doctor_id
String
Encrypted Doctor ID. This ID is available in the Order Details.
payment_status*
Number
To choose payment mode of the order.
1: CASH
2: CREDIT
3: UPI
4: CHEQUE
5: PAYTM
6: CC/DC
7: RTGS/NEFT
{
"status_code": "1",
"status_message": "New sales bill created successfully.",
"datetime": "2023-03-09 17:01:32",
"ng_version": "0.0.371",
"data": {
"order_id": "LcNx52qfdGlw0aHcqmgsRg==",
"bill_no": "141",
"order_number": "OKLF112H59",
"amount": "29",
"print_url": "http://www.evital.in/invoice/T0tMRjExMkg1OQ==/print/",
"share_message": "Hi%20Aagam%20Shah%2C%0AThank%20you%20for%20your%20purchase%20at%20*Manav%20Medical%20GJ*.%20We%20hope%20to%20serve%20you%20again.%0AClick%20to%20make%20Payment%20or%20view%20Invoice%3A%20http%3A%2F%2Flocalhost%2Fevital%2Finvoice%2FT0tMRjExMkg1OQ%3D%3D%2F%3Fsource%3DWhatsApp%26medium%3DManual%0A%0AIf%20the%20link%20is%20not%20clickable%2C%20please%20save%20this%20number%20and%20try%20again.%0A%0AYour%20trusted%20pharmacist%2C%0AManav%20Medical%20GJ",
"invoice_url": "Hi%20Aagam%20Shah%2C%0AThank%20you%20for%20your%20purchase%20at%20*Manav%20Medical%20GJ*.%20We%20hope%20to%20serve%20you%20again.%0AClick%20to%20make%20Payment%20or%20view%20Invoice%3A%20http%3A%2F%2Flocalhost%2Fevital%2Finvoice%2FT0tMRjExMkg1OQ%3D%3D%2F%3Fsource%3DWhatsApp%26medium%3DManual%0A%0AIf%20the%20link%20is%20not%20clickable%2C%20please%20save%20this%20number%20and%20try%20again.%0A%0AYour%20trusted%20pharmacist%2C%0AManav%20Medical%20GJ"
}
}
Last updated
Was this helpful?