Restofy Docs
Control de inventario POST

Listar bodegas para contar

POST /api/inventory/list-count-locations

Descripción

Devuelve las bodegas a tu cargo con lo que les toca contar hoy y su conteo en curso.

Detalles

Retorna solo las bodegas que tienes asignadas. Por cada una indica cuántos insumos le toca contar hoy según su frecuencia, cuántos vienen atrasados y, si hay un conteo en curso, cuántos insumos lleva contados. Nunca incluye cantidades del sistema.

Permisos requeridos

inventory.count.declare inventory.count.close

El usuario solo necesita uno de los permisos listados.

Request

Este endpoint no recibe parámetros.

Ejemplo de request

curl -X POST https://restofy.pro/api/inventory/list-count-locations \
  -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-11-02T19:00:57Z
HTTP 200

Request

[]

Response

{
    "success": true,
    "message": "Operación realizada correctamente",
    "data": {
        "locations": [
            {
                "storageLocationId": 4,
                "name": "Bodega Bebidas",
                "dueCount": 0,
                "overdueCount": 0,
                "inventoryCountUuid": null,
                "countedCount": 0,
                "openedAt": null
            },
            {
                "storageLocationId": 7,
                "name": "Bodega conteo 6ae8d7ac7d9bb",
                "dueCount": 1,
                "overdueCount": 0,
                "inventoryCountUuid": null,
                "countedCount": 0,
                "openedAt": null
            },
            {
                "storageLocationId": 1,
                "name": "Bodega Principal",
                "dueCount": 0,
                "overdueCount": 0,
                "inventoryCountUuid": null,
                "countedCount": 0,
                "openedAt": null
            },
            {
                "storageLocationId": 5,
                "name": "Bodega Principal",
                "dueCount": 0,
                "overdueCount": 0,
                "inventoryCountUuid": null,
                "countedCount": 0,
                "openedAt": null
            },
            {
                "storageLocationId": 2,
                "name": "Cuarto Frío - Carnes",
                "dueCount": 0,
                "overdueCount": 0,
                "inventoryCountUuid": null,
                "countedCount": 0,
                "openedAt": null
            },
            {
                "storageLocationId": 6,
                "name": "Cuarto Frío - Mariscos",
                "dueCount": 0,
                "overdueCount": 0,
                "inventoryCountUuid": null,
                "countedCount": 0,
                "openedAt": null
            },
            {
                "storageLocationId": 3,
                "name": "Cuarto Frío - Verduras",
                "dueCount": 0,
                "overdueCount": 0,
                "inventoryCountUuid": null,
                "countedCount": 0,
                "openedAt": null
            }
        ]
    }
}