Endpoint
Authentication
This endpoint requires authentication and store employee authorization.Request
Path parameters
MongoDB ObjectId of the menu item to delete
Headers
Bearer token for authentication
Response
Indicates if the request was successful
Human-readable message describing the result
Unlike create and update endpoints, the delete endpoint does not return the deleted item data.
Examples
Success response (200)
Error responses
404 - Menu item not found
This error can occur if the menu item has already been deleted or if the ID is invalid.
403 - Not authorized
401 - Unauthorized
Authorization logic
The endpoint performs the following authorization checks:- Verifies the user is authenticated
- Verifies the user has the
store_employeerole - Finds the menu item by ID and populates the store’s owner_id
- Compares the authenticated user’s ID with the store’s owner_id
- Only proceeds with deletion if they match