This page provides a full description of all the routes available for handling printers. Each route is explained with its parameters, required headers, possible responses and examples of use.
Last updated
This page provides a full description of all the routes available for handling printers. Each route is explained with its parameters, required headers, possible responses and examples of use.
Last updated
โก๏ธ Create a print job
โก๏ธ Get print job status
Parameter | Type | Explanation | Mandatory |
---|---|---|---|
Parameter | Type | Explanation | Mandatory |
---|---|---|---|
This route is dedicated to create a printjob on the printer.
POST https://api.fyre.app/api/v1/printers/onebox/{printerId}/printjobs
This route is used to get the print job status on the printer.
GET https://api.fyre.app/api/v1/printers/onebox/{printerId}/printjobs/{printjobId}
Value | Explanation |
---|---|
Parameter | Type | Explanation | Mandatory |
---|---|---|---|
Parameter | Type | Explanation | Mandatory |
---|---|---|---|
commands
It's an array of PrintcommandType, it can contain a type TextPrintCommand | CutPrintCommand | FeedPrintCommand. Each line doesn't have to have the same type. More explanations below with the example here.
โ
type
string
Use the value "epos".
โ
type
string
Use the value "text".
โ
lang
string
Text langage.
โ
smooth
boolean
Enables or disables anti-aliasing (smoothing) to improve text sharpness.
โ
x
number
Horizontal position of the text (X coordinate).
โ
align
Alignment of the text (left, right, center).
โ
value
string
The text content to be printed.
โ
width
number
Width of the text line (integer values only, 1 or 2).
โ
height
number
Height of the text line (integer values only, 1 or 2).
โ
reverse
boolean
Inverts the text colors (negative mode).
โ
ul
boolean
Enables or disables underline for the text.
โ
em
boolean
Enables or disables emphasis (bold or italic depending on the implementation).
โ
color
string
Text color (CSS color value or other supported format).
โ
left
Align left.
center
Align center.
right
Align right.
type
string
Use the value "cut".
โ
typetype
string
Use the value "feed".
โ
value
string
Optional value that might provide additional information or metadata related to the cut command.
โ
type
string
Use the value "feed".
โ
line
number
Number of lines to feed (i.e., how many lines the paper should move forward).
โ
value
string
Optional value that might include additional information or metadata related to the feed command.
โ