Files
dashback/docs/api/routes/printerjob/_id.get.md
2026-10-31 21:02:53 +01:00

910 B

GET /printerjob/{id}

Protected. Requires a valid session cookie (credentials: 'include').

Get printer job

Retrieves details of a specific printer job by ID.

Path parameters

Param Required Type Description
id yes integer

Response 200

Printer job details

{
  "printerjob": {
    "id": 1,
    "agentprinterId": 1,
    "printeragentId": 1,
    "type": "zpl",
    "state": "pending",
    "data": "…",
    "createdAt": "2026-08-10T00:00:00.000Z",
    "completedAt": "2026-08-10T00:00:00.000Z"
  }
}

Errors

Status Description
400 Invalid ID or no company selected — {"error":"…"}
401 Unauthorized — {"error":"…"}
404 Printer job not found — {"error":"…"}

Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.