eVitalRx
  • API - powered by eVitalRx
  • Getting Started with eVitalRx
  • API FOR Product Catalogue
    • Introduction
    • Medicines
      • Search Product
      • Product Details
      • Search Content
      • Request Product
      • Get Categories
      • Get Category Products
  • API FOR Patient App
    • Introduction
    • Login/Signup
      • Signup send OTP
      • Signup
      • Login
      • Forgot password send OTP
      • Reset password
      • Change password
    • Patients
      • Add Patient
      • Update Patient
      • Get Patient
      • Add Patient family member
    • Addresses
      • List Addresses
      • Add-Update Address
      • Set Default Address
      • Delete Address
    • Medicines
      • Search Products
      • Search Manufacturer
      • Product Details
      • Get Stock details
      • Get Product Batch
      • Search Content
      • Branded to Generic
      • Get Categories
      • Get Category Products
      • Get Entity Categories
      • Get Entity Category Products
    • Orders
      • Place Order
      • Cancel Order
      • Save
      • Order Details
      • Order List
      • Mark as Accept
      • Mark as Reject
      • Get Reject Reasons
      • Get Chemist Order Settings
      • â›”Mark as Shipped
      • Mark as Delivered
      • Order Return
      • Order Return Details
  • API FOR EMR/HMIS SOFTWARE
    • Introduction
    • Medicines
      • Search Products
      • Product Details
      • Get Inventory Status
      • Get Inventory Items
      • Get Alternatives
      • Get Product Batch
      • Get Expired Batches
      • Request Product
      • Branded to Generic
      • Search Content
      • Add Favorite Medicine
    • Patients
      • Add Patient
      • Get Patient
      • Update Patient
      • Add Patient family member
    • Orders
      • Push Prescription
      • Order Details
      • Order List
      • â›”Update Order
      • Save
  • API FOR Custom Fields
    • Introduction
    • Add Custom Fields
    • Update Custom Field
    • Delete Custom Fields
    • List Custom Fields
  • API FOR MASTER
    • Reports
      • Margin Report
      • Stock Summary
  • API FOR FULFILLMENT
    • Introduction
    • Medicines
      • Search Products
      • Product Details
    • Orders
      • â›”Check Serviceability
      • Check Serviceability V3
      • â›”Checkout V2
      • Checkout V3
      • â›”Place Order V2
      • Place Order V3
      • â›”Order Details
      • Order Details V2
      • â›”Cancel Order
      • Cancel Order V2
      • Get Reject Reasons
    • Patients
      • Add Patient
      • Get Patient
  • API FOR B2B
    • Introduction
    • Orders
      • Order Save
      • Order Save as Draft
      • Order List
      • Order Details
      • Order Return Save
      • Order Return List
      • Order Return Details
    • Customers
      • Add / Update Customer
      • Customer List
  • Webhook Responses
    • Introduction
    • Medicine Webhook
    • Transaction Webhook
    • Draft Save
    • Draft Edit
    • Order Save
    • Order Edit
    • Order Accepted
    • Order Rejected
    • Order Shipped
    • Order Delivered
    • Order Split
  • Others
    • Terms & Conditions
Powered by GitBook
On this page

Was this helpful?

  1. API FOR EMR/HMIS SOFTWARE
  2. Medicines

Branded to Generic

To get alternate products by unique medicine Id.

PreviousRequest ProductNextSearch Content

Last updated 3 months ago

Was this helpful?

POST

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
        }
    }
}
{
    "status_code": "1",
    "status_message": "Success",
    "datetime": "2022-12-08 16:20:45",
    "data": {
        "1iFlObGAoedKDQW27+2EQw==": {
            "data": [],
            "message": "alternative not found",
            "status": 0
        }
    }
}
{
    "status_code": "0",
    "status_message": "Invalid medicine key",
    "datetime": "2022-12-07 11:24:25",
    "data": null
}
{{apiUrl}}doctor/medicines/branded_to_generic