For the complete documentation index, see llms.txt. This page is also available as Markdown.

Send print job to printer Required permissions: PRINTER

Sends print data straight to the printer, exactly as you supply it. Flow applies no rendering and no formatting, so the data has to be in the language the printer speaks: ESC/POS for a receipt printer, ZPL for a label printer, PDF for a general printer.

Send the data either as a binary body with content type application/octet-stream, or base64 encoded in a JSON body with content type application/json. The two are equivalent.

A 202 means the printer accepted the job. A 502 means the printer, or the connection to it, reported an error - the message field carries what it reported.

For a CloudPRNT printer, 202 means the job is queued; the printer fetches it on its next poll. Look up the result with GET .../jobs/{printJobUid}.

post
/tenants/{tenantUid}/printers/{printerUid}/jobs
Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
printerUidstringRequired

Reference to a printer

Pattern: ^[A-Za-z0-9-_]+
Body
string · binaryOptional
Responses
202

Print job accepted. For a CloudPRNT printer it is queued, and printJobUid is set.

application/json
printJobUidstringOptional

Set when the printer fetches its jobs itself (CloudPRNT). Look the job up with GET .../jobs/{printJobUid}.

post/tenants/{tenantUid}/printers/{printerUid}/jobs
POST /v2/tenants/{tenantUid}/printers/{printerUid}/jobs HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/octet-stream
Accept: */*
Content-Length: 8

"binary"
{
  "printJobUid": "text"
}

Last updated

Was this helpful?