POST
/
v1
/
medicine
/
search_medicine
Search for medicines
curl --request POST \
  --url https://dev-api-be.localwell.in/app/partner/v1/medicine/search_medicine \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-pharmacy-id: <x-pharmacy-id>' \
  --data '{
  "search_text": "Dolo 650",
  "is_in_stock": true
}'
{
  "data": {
    "medicines": [
      {
        "medicine_id": 13568,
        "medicine_is_verified": true,
        "medicine_name": "Dolo 650 Tab",
        "medicine_form": "Tablet",
        "medicine_company_name": "Micro Labs Ltd",
        "composition_name": "Paracetamol (650mg)",
        "is_prescribed": true,
        "prescription_type": "H",
        "medicine_primary_pack": 15,
        "mrp": 33.76,
        "is_in_stock": true,
        "sale_rate": 33.76,
        "stock_qty_packs": 17,
        "front_medicine_image_url": "https://localwellbusiness.s3.ap-south-1.amazonaws.com/business/medicine/images/o/fe46cd7a8fc82085797f89a1b.webp"
      }
    ]
  },
  "statuscode": 200,
  "message": "Okay"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-pharmacy-id
integer
required

Pharmacy ID passed in the header

Body

application/json
search_text
string
required

Search term that can either be a medicine name (text input) or a barcode value. The system will auto-detect and process accordingly. Input should be >= 3 characters

Example:

"Dolo 650"

is_in_stock
boolean

Filter to return only in-stock medicines (default false)

Example:

true

Response

Successful response with medicine search results

data
object
statuscode
integer
Example:

200

message
string
Example:

"Okay"