Base URL
https://{tenant}.logzi.com/api/printer_queue/
Every request returns a JSON response. On success result.code == 1, on failure result.code == 0. The print queue contains jobs waiting for a printer device — each job identifies one copy of one receipt.
/api/printer_queue/get
Retrieve a single print queue item by ID.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Print queue item ID |
Example request
GET /api/printer_queue/get?id=5
X-API-KEY: {your_api_key}
/api/printer_queue/list
Retrieve a paginated list of the print queue.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) | |
list_condition | object | Filter conditions object |
Example request
GET /api/printer_queue/list?list_offset=0
X-API-KEY: {your_api_key}
/api/printer_queue/save
Queue or update a print job. Use data[id] = 0 for a new job.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | 0 = new job, >0 = update | |
printer_device_id | int | Target printer device ID | |
receipt_id | int | ID of the receipt to print | |
receipt_type_id | int | Receipt type | |
receipt_source | string | Print source (e.g. pdf, pos-thermal) | |
is_printed | int | 1 = already printed |
Example request
POST /api/printer_queue/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{
"data": {
"id": 0,
"printer_device_id": 1,
"receipt_id": 150,
"receipt_type_id": 2,
"receipt_source": "pos-thermal",
"is_printed": 0
}
}
/api/printer_queue/delete
Remove a print job from the queue.
POST fields — data object
| Field | Type | Required | Description |
|---|---|---|---|
id | int | ID of the queue item to delete |
Example request
POST /api/printer_queue/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 5 } }
Create your account now,
pay later!