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 el ancho del papel y los caracteres que entran por renglón. Incluye tanto las activas como las pausadas.
Permisos requeridos
settings.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://restofy.pro/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-09-13T21:05:19Z
HTTP 200
Request
[]
Response
{
"success": true,
"message": "Operación realizada correctamente",
"data": {
"printers": [
{
"printerId": 2,
"printerUuid": "01d42348-e8f1-4ec1-868c-5df9c5879bd8",
"name": "Comandera 6aa70fcc99f84",
"deviceName": "POS-58",
"printWidthMm": 80,
"printColumns": 48,
"stripAccents": 0,
"stationId": 2,
"stationUuid": "9d8496a7-b959-4238-8c1f-f0b6bd916064",
"stationName": "Estacion p 6aa70fcc6879a",
"isActive": 1,
"isAvailable": 1
},
{
"printerId": 1,
"printerUuid": "12b1deb0-a622-4db4-a8d7-04a5cd8b3acc",
"name": "Comandera disp 6aa70fcc05d9e",
"deviceName": "POS-80",
"printWidthMm": 80,
"printColumns": 48,
"stripAccents": 0,
"stationId": 1,
"stationUuid": "cdfdf426-269e-43f3-b203-fd4fc8fa2679",
"stationName": "Estacion p 6aa70fcbc63f5",
"isActive": 1,
"isAvailable": 1
}
],
"pagination": {
"page": 1,
"limit": 50,
"total": 2,
"totalPages": 1,
"hasNext": false,
"hasPrev": false
}
}
}