POST /medicines/search
Returns a ranked list of verified pharmacies that have the specified medicine in stock within the given radius of the patient’s location. Results are sorted by proximity by default.Request
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Medicine name, generic or brand. Minimum 2 characters. |
location | object | Yes | Patient’s lat and lng coordinates. |
radius_km | integer | No | Search radius in kilometres. Default: 10. Max: 50. |
limit | integer | No | Max number of results to return. Default: 10. Max: 50. |
Response
200 — Success
Response fields
| Field | Type | Description |
|---|---|---|
pharmacy_id | string | Unique pharmacy identifier. Use this when creating a request. |
name | string | Pharmacy display name and branch location. |
address | string | Full street address of the pharmacy. |
in_stock | boolean | Whether the medicine is currently available. |
price_ngn | integer | Price in Nigerian Naira. |
distance_km | float | Distance from the provided patient location. |
estimated_delivery_minutes | integer | Estimated time from order to patient delivery. |

