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) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Path parameters
supplierIdstringrequiredThe supplier being deactivated.
Responses
204
Supplier deactivated
401
Not authenticated
detailstringrequired403
Caller is not an admin, inventory manager, or branch manager
detailstringrequired404
Supplier not found
detailstringrequired