Files
Printservice-REST/examples/curl-print-authenticated.sh
2026-06-09 22:13:00 +02:00

11 lines
331 B
Bash

curl -X POST http://localhost:8080/api/print \
-H "Content-Type: application/json" \
-H "X-Printservice-Token: CHANGE_ME_PRINT_TOKEN" \
-d '{
"printerAlias":"LABEL_LINE_01",
"templateName":"serial_label_zpl",
"renderMode":"RAW",
"copies":1,
"data":{"serialNumber":"SNR000001","partNumber":"A123456"}
}'