Menu categories are the top-level groupings that organize your restaurant’s products — for example, Starters, Main Dishes, Beverages, and Desserts. Every product must belong to a category, so categories should be created before any menu items are added. The four endpoints below let you create, update, list, and delete categories for a given company tenant.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/fredy-rizo/MultiSas/llms.txt
Use this file to discover all available pages before exploring further.
All category endpoints require two authentication middlewares.
TokenAny
validates the bearer token and attaches the user to the request. TokenAuthorize('Admin', 'Super Admin')
then restricts access to users whose role is either Admin or Super Admin.
Include the token in every request as token-access: Bearer $TOKEN.Create a Category
POST /api/category/:company_id
Creates a new menu category scoped to the specified company.
Path Parameters
The MongoDB ObjectId of the company (tenant) that owns this category.
Body Parameters
Display name for the category (e.g.
"Platos Fuertes", "Bebidas").A short description of what the category contains.
A string value used to sort categories on the menu (e.g.
"1", "2").Response Fields
Human-readable result message.
true on success, false on failure.The newly created category document.
Example
Update a Category
PUT /api/category/updating/:company_id/:category_id
Updates the name_category, description_category, and sort_order fields of an existing category.
Path Parameters
The MongoDB ObjectId of the owning company.
The MongoDB ObjectId of the category to update.
Body Parameters
Updated display name for the category.
Updated description.
Updated sort order value.
Response Fields
Human-readable result message.
true on success, false on failure.Example
List Categories
GET /api/category/list/:company_id
Returns a paginated list of all categories belonging to the specified company, sorted by most recently created.
Path Parameters
The MongoDB ObjectId of the company whose categories to retrieve.
Response Fields
Human-readable result message.
true on success.Array of category documents matching the company.
Pagination metadata.
Example
Delete a Category
DELETE /api/category/delete/:category_id
Permanently deletes a category by its ID. This action is irreversible.
Path Parameters
The MongoDB ObjectId of the category to delete.
Response Fields
Human-readable result message.
true on success, false if the category was not found.