Skip to content
PharmaFlow Knowledgebase
Esc
↑↓navigate↵open⌘Jpreview

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) · headerrequired

JWT from POST /api/v1/auth/login sent as Authorization Bearer.

Path parameters
medicineIdstringrequired

The medicine being deactivated.

Responses
204

Medicine deactivated

401

Not authenticated

detailstringrequired
403

Caller is not an admin, inventory manager, or branch manager

detailstringrequired
404

Medicine not found

detailstringrequired
Try it
Server
Authorization
Parameters
Request
curl -X DELETE 'http://localhost:8000/api/v1/medicines/string' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
Medicine deactivated