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

Deactivate a supplier

Admin, inventory manager, or branch manager. Clears the active flag instead of deleting. Batches and past receipts still point at the supplier, so it only leaves the default list.

DELETE/api/v1/suppliers/{supplierId}
Authorization
AuthorizationBearer token (JWT) · headerrequired

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

Path parameters
supplierIdstringrequired

The supplier being deactivated.

Responses
204

Supplier deactivated

401

Not authenticated

detailstringrequired
403

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

detailstringrequired
404

Supplier not found

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