> For the complete documentation index, see [llms.txt](https://docs.evitalrx.in/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.evitalrx.in/api-for-patient-app/medicines/get-stock-details.md).

# Get Stock details

### <img src="https://static.vecteezy.com/system/resources/thumbnails/018/930/572/small/youtube-logo-youtube-icon-transparent-free-png.png" alt="" data-size="line"> [Before Fetching Stock Details, Add Medicines to Your Inventory](https://youtu.be/v29o6YEsocc?si=WM0nJ2BmAuye7tNE)

### Product Details

<mark style="color:green;">`POST`</mark> [`{{apiUrl}}patient/medicines/get_inventory_status`](https://api.evitalrx.in/v1/patient/medicines/get_inventory_status)

#### Request Body

| Name                                     | Type   | Description                                                                                                                                                                                          |
| ---------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| apikey<mark style="color:red;">\*</mark> | String | Authentication Token                                                                                                                                                                                 |
| medicine\_ids\*                          | String | <p>Stringified Array of medicine\_ids.</p><p></p><p>medicine\_ids should contain at least 1 medicine\_ids.</p><p></p><p>Example:</p><p>\["z5s5a+e/Cj4ip7sUl2zJFQ==", "otUfMtG4nIpWSc+oWoX7Lw=="]</p> |

{% tabs %}
{% tab title="200: OK Success" %}

```json
{
  "status_code": "1",
  "status_message": "Success",
  "datetime": "2024-04-25 12:53:46",
  "data": {
    "results": [
      {
        "medicine_id": "TF7Wm49nceLV+NmoM6HJYw==",
        "loose_quantity": 2010,   // quantity at parent chemist or HO
        "strip_quantity": 201,
        "availability": [
          {
            "chemist_id": "qgOgKbBh6UrMJfLyTMtEOw==",
            "chemist_code": "C0065",
            "loose_quantity": 1158,  // quantity at child chemist or Branch
            "strip_quantity": 115
          },
          {
            "chemist_id": "Rzraa93BrrDK9KEVXmPHEQ==",
            "chemist_code": "C0065",
            "loose_quantity": 1160,
            "strip_quantity": 116
          },
          {
            "chemist_id": "M3FvgrgA14Rr2SGTeY7Icw==",
            "chemist_code": "C0065",
            "loose_quantity": 1980,
            "strip_quantity": 198
          },
          {
            "chemist_id": "81PuG89qeGla7moarByvUA==",
            "chemist_code": "C0065",
            "loose_quantity": 1000,
            "strip_quantity": 100
          },
          {
            "chemist_id": "4mtv5aog/Bi0+0q7IsEcRg==",
            "chemist_code": "C0065",
            "loose_quantity": 100,
            "strip_quantity": 10
          }
        ]
      },
      {
        "medicine_id": "iLlokdPAdebp7RYKR5WpnQ==",
        "loose_quantity": 20,
        "strip_quantity": 2,
        "availability": []
      },
      {
        "medicine_id": "M6rdmJ2RYkfkgk+6tEtJmg==",
        "loose_quantity": 1,
        "strip_quantity": 1,
        "availability": []
      }
    ]
  }
}
```

{% endtab %}

{% tab title="200: OK No Product found according to request params" %}

```json
{
    "status_code": "0",
    "status_message": "Invalid medicine key",
    "datetime": "2022-12-06 16:42:59",
    "data": null
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.evitalrx.in/api-for-patient-app/medicines/get-stock-details.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
