Deactivate a medicine
Admin, inventory manager, or branch manager. Clears the active flag instead of the row. Batches and past sales point at it, so it is hidden from the catalogue and refused on read.
DELETE
/api/v1/medicines/{medicineId}Authorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Path parameters
medicineIdstringrequiredThe medicine being deactivated.
Responses
204
Medicine deactivated
401
Not authenticated
detailstringrequired403
Caller is not an admin, inventory manager, or branch manager
detailstringrequired404
Medicine not found
detailstringrequired