---
search:
  tags:
    - Dispensing
    - GET
seo:
  description: >-
    Any signed in user. Returns up to 25 active medicines matching a… Reference
    for the GET /api/v1/dispensing/generic-search endpoint in the PharmaFlow
    API.
sidebar:
  label: Search medicines by generic name
  badge: GET
title: Search medicines by generic name
type: openapi-operation
---
Any signed in user. Returns up to 25 active medicines matching a generic or brand name. A term under two characters is refused, and the rows are ordered by stock on hand.

`GET /api/v1/dispensing/generic-search`

**Responses**

- `200` — The matching medicines
- `400` — Search term must be at least 2 characters
- `401` — Not authenticated

Response example, 200:

```json
{
  "items": [
    {
      "id": "string",
      "name": "string",
      "generic_name": "string",
      "strength": "string",
      "form": "string",
      "selling_price": 0,
      "stock_quantity": -9007199254740991
    }
  ]
}
```
