Print Job Request
Send a print job to a configured thermal printer.Message Format
Request Fields
Unique identifier for this print job. Used to match results with requests.
Identifier of the station or point-of-sale terminal originating the request.
Identifier of the target printer. Must match a printer ID in APM configuration.
Type of document to print. Determines which template is used. Common values:
ticket_venta- Sales receiptcomanda- Kitchen orderfactura_electronica- Electronic invoicesticker- Product label/sticker
The main document data. Structure varies by document type and template configuration. Contains the business data to be printed (invoice details, order items, etc.).
List of images to include in the printout (e.g., logos, signatures).
List of barcodes to print.
List of QR codes to print.
Print Job Result
After processing a print job, APM sends a result message back to the requesting client.Message Format
Success
Error
Response Fields
The job identifier from the original request.
Final status of the print job:
DONE- Print job completed successfullyERROR- Print job failed
Error details if Status is
ERROR, otherwise null.Example: Complete Print Flow
Document Types
TheDocumentType field determines which print template is used. Common types:
| Document Type | Description | Typical Use |
|---|---|---|
ticket_venta | Sales receipt | Point of sale transactions |
comanda | Kitchen/bar order | Restaurant orders |
factura_electronica | Electronic invoice | Tax invoices |
sticker | Product label | Inventory labels |
Each document type requires a corresponding template to be configured in APM. See Template Updates for how to manage templates.
Source Reference
- Request model:
source/Core/Models/PrintJobRequest.cs:9 - Result model:
source/Core/Models/PrintJobResult.cs:7 - WebSocket handler:
source/Infraestructure/Services/WebSocketServerService.cs:478 - Event handler:
source/WorkerService/Worker.cs:30