Categories are the top-level grouping for all inventory items in Kantuta POS. Every product must belong to a category, so managing categories is a prerequisite for building out your product catalog. All routes require a valid Bearer Token JWT in theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Eleazarguitar18/kantuta_pos_front/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header. The list endpoint automatically filters out inactive (soft-deleted) categories, so only records with estado: true are returned.
Interface Reference
GET /inventario/categorias
Returns the list of all active categories. Inactive (soft-deleted) categories are automatically excluded from this response. Authentication: Required —Authorization: Bearer <access_token>
Response Fields
Unique identifier for the category.
Display name of the category (max 100 characters).
Active flag. Always
true in list responses (inactive records are filtered out).ID of the user who created this category.
ID of the last user to update this category.
ISO 8601 timestamp of when the category was created.
ISO 8601 timestamp of the last update.
Array of products belonging to this category. Only populated when fetching by ID.
POST /inventario/categorias
Creates a new category and returns the saved object. Authentication: Required —Authorization: Bearer <access_token>
Request Body
Name of the category. Maximum 100 characters.
ID of the authenticated user performing the creation. Used for audit tracking.
Response Fields
Auto-generated unique identifier assigned to the new category.
Name of the newly created category.
Defaults to
true on creation.Echoes back the user ID that created the record.
ISO 8601 timestamp of creation.
ISO 8601 timestamp (equals
created_at on initial save).GET /inventario/categorias/:id
Fetches a single category by its numeric ID. The response includes theproductos array with all products associated with that category.
Authentication: Required — Authorization: Bearer <access_token>
Path Parameters
The unique identifier of the category to retrieve.
Response Fields
Unique identifier of the category.
Display name of the category.
Whether the category is active.
Products that belong to this category.
ISO 8601 creation timestamp.
ISO 8601 last-update timestamp.
PATCH /inventario/categorias/:id
Partially updates an existing category. Only the fields you include in the request body are changed; omitted fields retain their current values. Authentication: Required —Authorization: Bearer <access_token>
Path Parameters
The unique identifier of the category to update.
Request Body
New display name for the category. Maximum 100 characters.
ID of the authenticated user performing the update. Used for audit tracking.
Response Fields
Unique identifier of the updated category.
Updated name of the category.
Active status of the category.
ID of the user who performed this update.
ISO 8601 timestamp reflecting the time of this update.
DELETE /inventario/categorias/:id
Deactivates a category by setting itsestado field to false. The record is not permanently removed from the database.
Authentication: Required — Authorization: Bearer <access_token>
This is a soft delete. The category record is preserved in the database with
estado set to false. It will no longer appear in the GET /inventario/categorias list, but historical references from products are maintained for data integrity.Path Parameters
The unique identifier of the category to deactivate.