Branded to Generic
To get alternate products by unique medicine Id.
POST
{{apiUrl}}doctor/medicines/branded_to_generic
Get Alternate medicines with the best in terms of Expiry, Margin, and Price.
Request Body
Name
Type
Description
apikey*
String
Authentication Token
medicine_ids*
Stringified Array
Array of medicine_ids in the form data
[\"eGMwtMdst4OkfNrNoAFxRw\", \"77eruTI3h1JUg4RqaV20JQ\=="]
order_by
String
must be one of epm, mep, pem
epm: Expiry -> Price -> Margin
mep: Margin -> Expiry -> Price
pem: Price -> Expiry -> Margin
{
"status_code": "1",
"status_message": "Success",
"datetime": "2022-11-17 10:30:42",
"data": {
"eGMwtMdst4OkfNrNoAFxRw==": { // medicine ID
"data": [],
"message": "alternative not found",
"status": 0
},
"77eruTI3h1JUg4RqaV20JQ==": {
"data": [
{
"mrp": 204.97,
"batch": "C2VAV19",
"expiry": "11-23",
"packing_size": "1 Bottle of 5 Ml",
"medicine_name": "Moxicip D Eye Drop",
"manufacturer_name": "Cipla Ltd",
"margin_percentage": "23.20",
"medicine_id": "M1AGVZYv89bWlk7/oWbG4Q=="
}
],
"message": "success",
"status": 1
}
}
}
Last updated
Was this helpful?