Printer Device API

Manage network printers and printer devices — retrieve, create, update, and delete

Base URL

https://{tenant}.logzi.com/api/printer_device/

Every request returns a JSON response. On success result.code == 1, on failure result.code == 0. A printer device is the configuration of a network (IP-based) printer — the print queue (printer-queue) sends jobs to the device configured here.

GET /api/printer_device/get

Retrieve a single printer device by ID.

Query parameters

ParameterTypeRequiredDescription
idintID of the printer device

Example request

GET /api/printer_device/get?id=1
X-API-KEY: {your_api_key}
GET /api/printer_device/list

Retrieve a paginated list of printer devices.

Query parameters

ParameterTypeRequiredDescription
list_offsetintPagination offset (default: 0)

Example request

GET /api/printer_device/list?list_offset=0
X-API-KEY: {your_api_key}
POST /api/printer_device/save

Create or update a printer device. Use data[id] = 0 for a new device.

POST fields — data object

FieldTypeRequiredDescription
idint0 = new device, >0 = update
printer_namestringPrinter name (for internal identification)
printer_hoststringIP address or network host name
printer_portstringPort number (default: 9100)
printer_uristringURI path (for IPP printers)
printer_device_type_idintDevice type ID (e.g. thermal, A4)

Example request

POST /api/printer_device/save
X-API-KEY: {your_api_key}
Content-Type: application/json

{
  "data": {
    "id": 0,
    "printer_name": "Raktári thermal nyomtató",
    "printer_host": "192.168.1.100",
    "printer_port": "9100",
    "printer_device_type_id": 2
  }
}
POST /api/printer_device/delete

Delete a printer device by ID.

POST fields — data object

FieldTypeRequiredDescription
idintID of the printer device to delete

Example request

POST /api/printer_device/delete
X-API-KEY: {your_api_key}
Content-Type: application/json

{ "data": { "id": 1 } }

Get in touch with us

Interested in our software? Feel free to write to us!

Need help?

If you can't find the answer and need assistance

Create your account now,
pay later!

Try it free for 3 days, no risk, no obligation!