SmartGare
API referenceEndpoints

Read a printer's settings

Asks the station's hardware bridge what the printer at the address is set to and answers each value the bridge reported, leaving out any it did not; or, with no value, why none could be read: UNKNOWN_TO_BRIDGE, NOT_A_PRINTER, OFFLINE, NOT_DETERMINABLE, or BRIDGE_UNREACHABLE when no bridge is configured or it gave no usable answer in time. The bridge never fails this read. **Required permission:** `referential.printer-settings:read`

GET/referential/v1/printer-settings

Asks the station's hardware bridge what the printer at the address is set to and answers each value the bridge reported, leaving out any it did not; or, with no value, why none could be read: UNKNOWN_TO_BRIDGE, NOT_A_PRINTER, OFFLINE, NOT_DETERMINABLE, or BRIDGE_UNREACHABLE when no bridge is configured or it gave no usable answer in time. The bridge never fails this read.

Required permission: referential.printer-settings:read

AuthorizationBearer <token>

In: header

Query Parameters

address*string

The printer's bridge address, capability@place or capability[role]@place. One printer per read.

Match^([a-z][a-z0-9]*(?:-[a-z0-9]+)*)(?:\[([a-z][a-z0-9]*(?:-[a-z0-9]+)*)\])?@([A-Za-z0-9_.:-]+)$

Response Body

*/*

curl -X GET "https://example.com/referential/v1/printer-settings?address=string"
{  "address": "string",  "cutter": true,  "darkness": 0,  "dots_per_inch": 0,  "label_length_mm": 0,  "label_width_mm": 0,  "method": "THERMAL_TRANSFER",  "pdf_direct": true,  "reported_at": "2019-08-24T14:15:22Z",  "speed": 0,  "unread": "UNKNOWN_TO_BRIDGE"}