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.
/api/printer_device/get
Retrieve a single printer device by ID.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | ID of the printer device |
Example request
GET /api/printer_device/get?id=1
X-API-KEY: {your_api_key}
/api/printer_device/list
Retrieve a paginated list of printer devices.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) |
Example request
GET /api/printer_device/list?list_offset=0
X-API-KEY: {your_api_key}
/api/printer_device/save
Create or update a printer device. Use data[id] = 0 for a new device.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | 0 = new device, >0 = update | |
printer_name | string | Printer name (for internal identification) | |
printer_host | string | IP address or network host name | |
printer_port | string | Port number (default: 9100) | |
printer_uri | string | URI path (for IPP printers) | |
printer_device_type_id | int | Device 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
}
}
/api/printer_device/delete
Delete a printer device by ID.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | ID 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 } }
Create your account now,
pay later!