Restofy Docs
Insumos POST

Listar insumos

POST /api/inventory-items/list-inventory-items

Descripción

Devuelve el listado paginado de insumos del restaurante.

Detalles

* Retorna insumos con su código, categoría, unidad base, costo y punto de reorden. * La búsqueda aplica sobre el nombre y el código del insumo. * Los insumos pausados se incluyen en el listado; el campo de estado indica cuáles lo están.

Permisos requeridos

catalog.module

Request

Nombre Tipo Requerido Reglas
search string No
max:100

Paginación

defaultLimit 50
maxLimit 100
defaultDir asc
withTotal true
allowedSorts [name, sku, costCents, reorderPoint]

Ejemplo de request

curl -X POST https://app.restofy.co/api/inventory-items/list-inventory-items \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <accessToken>"

Los valores son demo: reemplázalos por datos reales del negocio.

Ejemplo de respuesta

Actualizado: 2026-07-15T13:20:48Z
HTTP 200

Request

[]

Response

{
    "success": true,
    "message": "Operación realizada correctamente",
    "data": {
        "inventoryItems": [
            {
                "inventoryItemId": 24,
                "name": "Aceite Vegetal",
                "sku": "INS-060",
                "costCents": 550000,
                "reorderPoint": "3000.0000",
                "categoryName": "Aceites y Grasas",
                "unitSymbol": "ml",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 14,
                "name": "Aguacate Hass",
                "sku": "INS-025",
                "costCents": 500000,
                "reorderPoint": "3000.0000",
                "categoryName": "Verduras y Hortalizas",
                "unitSymbol": "g",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 22,
                "name": "Arroz Blanco",
                "sku": "INS-050",
                "costCents": 250000,
                "reorderPoint": "5000.0000",
                "categoryName": "Granos y Cereales",
                "unitSymbol": "g",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 26,
                "name": "Café Molido",
                "sku": "INS-080",
                "costCents": 3000000,
                "reorderPoint": "500.0000",
                "categoryName": "Especias y Condimentos",
                "unitSymbol": "g",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 8,
                "name": "Calamar",
                "sku": "INS-012",
                "costCents": 4000000,
                "reorderPoint": "1000.0000",
                "categoryName": "Pescados y Mariscos",
                "unitSymbol": "g",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 6,
                "name": "Camarón Fresco",
                "sku": "INS-010",
                "costCents": 6000000,
                "reorderPoint": "2000.0000",
                "categoryName": "Pescados y Mariscos",
                "unitSymbol": "g",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 11,
                "name": "Cebolla Larga",
                "sku": "INS-022",
                "costCents": 180000,
                "reorderPoint": "2000.0000",
                "categoryName": "Verduras y Hortalizas",
                "unitSymbol": "g",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 5,
                "name": "Chicharrón",
                "sku": "INS-005",
                "costCents": 2500000,
                "reorderPoint": "1000.0000",
                "categoryName": "Carnes y Aves",
                "unitSymbol": "g",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 4,
                "name": "Chorizo Artesanal",
                "sku": "INS-004",
                "costCents": 2200000,
                "reorderPoint": "2000.0000",
                "categoryName": "Carnes y Aves",
                "unitSymbol": "g",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 2,
                "name": "Churrasco",
                "sku": "INS-002",
                "costCents": 3800000,
                "reorderPoint": "3000.0000",
                "categoryName": "Carnes y Aves",
                "unitSymbol": "g",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 20,
                "name": "Crema de Leche",
                "sku": "INS-042",
                "costCents": 600000,
                "reorderPoint": "2000.0000",
                "categoryName": "Lácteos y Huevos",
                "unitSymbol": "ml",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 7,
                "name": "Filete de Tilapia",
                "sku": "INS-011",
                "costCents": 3000000,
                "reorderPoint": "2000.0000",
                "categoryName": "Pescados y Mariscos",
                "unitSymbol": "g",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 23,
                "name": "Frijoles Cargamanto",
                "sku": "INS-051",
                "costCents": 350000,
                "reorderPoint": "3000.0000",
                "categoryName": "Granos y Cereales",
                "unitSymbol": "g",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 21,
                "name": "Huevo",
                "sku": "INS-043",
                "costCents": 50000,
                "reorderPoint": "120.0000",
                "categoryName": "Lácteos y Huevos",
                "unitSymbol": "und",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 18,
                "name": "Leche Entera",
                "sku": "INS-040",
                "costCents": 400000,
                "reorderPoint": "5000.0000",
                "categoryName": "Lácteos y Huevos",
                "unitSymbol": "ml",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 13,
                "name": "Lechuga Romana",
                "sku": "INS-024",
                "costCents": 200000,
                "reorderPoint": "2000.0000",
                "categoryName": "Verduras y Hortalizas",
                "unitSymbol": "g",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 17,
                "name": "Limón Tahití",
                "sku": "INS-032",
                "costCents": 120000,
                "reorderPoint": "3000.0000",
                "categoryName": "Frutas",
                "unitSymbol": "g",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 1,
                "name": "Lomo de Res",
                "sku": "INS-001",
                "costCents": 4500000,
                "reorderPoint": "5000.0000",
                "categoryName": "Carnes y Aves",
                "unitSymbol": "g",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 16,
                "name": "Maracuyá",
                "sku": "INS-031",
                "costCents": 300000,
                "reorderPoint": "2000.0000",
                "categoryName": "Frutas",
                "unitSymbol": "g",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 15,
                "name": "Naranja Valencia",
                "sku": "INS-030",
                "costCents": 100000,
                "reorderPoint": "5000.0000",
                "categoryName": "Frutas",
                "unitSymbol": "g",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 9,
                "name": "Papa Criolla",
                "sku": "INS-020",
                "costCents": 200000,
                "reorderPoint": "5000.0000",
                "categoryName": "Verduras y Hortalizas",
                "unitSymbol": "g",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 10,
                "name": "Papa Pastusa",
                "sku": "INS-021",
                "costCents": 150000,
                "reorderPoint": "5000.0000",
                "categoryName": "Verduras y Hortalizas",
                "unitSymbol": "g",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 3,
                "name": "Pechuga de Pollo",
                "sku": "INS-003",
                "costCents": 1800000,
                "reorderPoint": "5000.0000",
                "categoryName": "Carnes y Aves",
                "unitSymbol": "g",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 19,
                "name": "Queso Campesino",
                "sku": "INS-041",
                "costCents": 2500000,
                "reorderPoint": "2000.0000",
                "categoryName": "Lácteos y Huevos",
                "unitSymbol": "g",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 25,
                "name": "Sal",
                "sku": "INS-070",
                "costCents": 50000,
                "reorderPoint": "2000.0000",
                "categoryName": "Especias y Condimentos",
                "unitSymbol": "g",
                "isActive": 1,
                "isAvailable": 1
            },
            {
                "inventoryItemId": 12,
                "name": "Tomate Chonto",
                "sku": "INS-023",
                "costCents": 120000,
                "reorderPoint": "3000.0000",
                "categoryName": "Verduras y Hortalizas",
                "unitSymbol": "g",
                "isActive": 1,
                "isAvailable": 1
            }
        ],
        "pagination": {
            "page": 1,
            "limit": 50,
            "total": 26,
            "totalPages": 1,
            "hasNext": false,
            "hasPrev": false
        }
    }
}