SmartGare
API referenceEndpoints

Send a printer the settings kept for it

Gives the printer at the address one order, through the station's hardware bridge, carrying every unit value kept for it — never the orientation — then reads its settings back. Answers the order's outcome (DELIVERED, NOT_DELIVERED, OUTCOME_UNKNOWN), the settings read back, the kept values the printer does not report as kept, and whether it restarts. Refused with referential.printer_settings_not_set when no unit value is kept; never fails because of the bridge. **Required permission:** `referential.printer-settings:write`

POST/referential/v1/printer-settings/sync

Gives the printer at the address one order, through the station's hardware bridge, carrying every unit value kept for it — never the orientation — then reads its settings back. Answers the order's outcome (DELIVERED, NOT_DELIVERED, OUTCOME_UNKNOWN), the settings read back, the kept values the printer does not report as kept, and whether it restarts. Refused with referential.printer_settings_not_set when no unit value is kept; never fails because of the bridge.

Required permission: referential.printer-settings:write

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*SyncPrinterSettingsRequest

Response Body

*/*

curl -X POST "https://example.com/referential/v1/printer-settings/sync" \  -H "Content-Type: application/json" \  -d '{    "address": "string"  }'
{  "address": "string",  "differences": [    "string"  ],  "order": "DELIVERED",  "restarting": true,  "settings": {    "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"  }}