Impresoras
POST
Listar impresoras
POST /api/printers/list-printers
Descripción
Retorna las impresoras del restaurante y la estación a la que pertenecen.
Detalles
Devuelve la lista paginada de impresoras. Cada impresora pertenece a una estación e indica su ancho de tirilla. Incluye tanto las activas como las pausadas.
Permisos requeridos
admin.module
Request
| Nombre | Tipo | Requerido | Reglas |
|---|---|---|---|
| search | string | No |
max:100
|
| isActive | bool | No | — |
| stationId | int | No |
min_value:1
|
Paginación
| defaultLimit | 50 |
| maxLimit | 100 |
| allowedSorts | name |
| defaultSort | name |
| defaultDir | asc |
| withTotal | true |
Ejemplo de request
curl -X POST https://app.restofy.co/api/printers/list-printers \
-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": {
"printers": [
{
"printerId": 2,
"printerUuid": "7d2e7976-f655-4fb6-a53f-a6c31170f67f",
"name": "Comandera 6a57890fe0ee1",
"deviceName": "POS-58",
"printWidthMm": 80,
"stationId": 2,
"stationUuid": "d38e70a9-5768-4e3a-adc8-a9fe807d26bd",
"stationName": "Estacion p 6a57890fb6212",
"isActive": 1,
"isAvailable": 1
},
{
"printerId": 1,
"printerUuid": "5e0f83a0-52c1-43f3-89fc-388e64b0756d",
"name": "Comandera disp 6a57890f5d541",
"deviceName": "POS-80",
"printWidthMm": 80,
"stationId": 1,
"stationUuid": "9a9e8b24-08d3-41af-87d1-d8c9baa21ff8",
"stationName": "Estacion p 6a57890f2e32a",
"isActive": 1,
"isAvailable": 1
}
],
"pagination": {
"page": 1,
"limit": 50,
"total": 2,
"totalPages": 1,
"hasNext": false,
"hasPrev": false
}
}
}