Overview
The Categories API allows you to manage food menu categories for a tenant’s menu. Categories organize menu items into logical groups (e.g., “Appetizers”, “Main Courses”, “Desserts”). Authentication: All endpoints require authentication via Laravel session. Base Path:/tenant/{tenantId}/food/categories
Plan Limits:
- Plan 1 (ESENCIA): 50 items, 6 photos
- Plan 2 (IMPULSO): 100 items, 12 photos
- Plan 3 (VISIÓN): 150 items, 18 photos
List Categories
The ID of the tenant
Create Category
Creates a new category for the tenant’s menu.The ID of the tenant
Category name (max 120 characters)
Category photo URL (max 255 characters)
Photo limits are enforced based on the tenant’s plan. Only categories with a
foto value count toward the limit.Update Category
Updates an existing category. All fields are optional.The ID of the tenant
The category ID (e.g., “cat-A3K9”)
Category name (max 120 characters)
Category photo URL (max 255 characters). Set to
null to remove.Whether the category is active/visible
Delete Category
Deletes a category and all its items.The ID of the tenant
The category ID to delete
Category Object
| Field | Type | Description |
|---|---|---|
id | string | Unique category identifier (e.g., “cat-A3K9”) |
nombre | string | Category name |
foto | string | null | Photo URL or null |
activo | boolean | Whether category is active |
items | array | Array of item objects belonging to this category |
Error Codes
| Code | HTTP Status | Description |
|---|---|---|
category_not_found | 404 | Category ID does not exist |
photo_limit_reached | 422 | Tenant has reached photo limit for their plan |