To get expired batches in your inventory by unique medicine Id.
Last updated 2 months ago
Was this helpful?
POST
Get Expired Batches available in your inventory by Medicine Key.
apikey*
String
Authentication Token
medicine_id*
Unique id of the product
expiry*
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" } ] }
{ "status_code": "0", "status_message": "No batches found for medicine", "datetime": "2022-12-07 11:23:46", "data": null }
{ "status_code": "0", "status_message": "Invalid medicine key", "datetime": "2022-12-07 11:24:25", "data": null }
{{apiUrl}}doctor/medicines/get_expire_batch