Get Expired Batches

To get expired batches in your inventory by unique medicine Id.

POST {{apiUrl}}doctor/medicines/get_expire_batch

Get Expired Batches available in your inventory by Medicine Key.

Request Body

Name
Type
Description

apikey*

String

Authentication Token

medicine_id*

String

Unique id of the product

expiry*

String

Date of Expiry in YYYY-MM-DD format.

The API will find the medicines which have expiry less than this date.

{
    "status_code": "1",
    "status_message": "Success",
    "datetime": "2022-12-08 15:11:10",
    "data": [
        {
            "medicine_id": "otUfMtG4nIpWSc+oWoX7Lw==",
            "id": "o5+9ckBfrNDerV+gyQmOCQ==", // Batch ID
            "batch": "ABC",
            "expiry": "2025-12-01",
            "mrp": 24,
            "price_to_retailer": 15,
            "quantity": 1230,
            "expiry_label": "12/25"
        },
        {
            "medicine_id": "otUfMtG4nIpWSc+oWoX7Lw==",
            "id": "/GuD64lAIn9WMiGQGFUuaA==",
            "batch": "PQR",
            "expiry": "2026-12-01",
            "mrp": 24,
            "price_to_retailer": 15,
            "quantity": 150,
            "expiry_label": "12/26"
        }
    ]
}

Last updated