SmartGare
API referenceEndpoints

Print a test label on a printer

Has the printer at the address print one test label through the station's hardware bridge, in French: its address, the label size, darkness and speed kept for it where kept, the station's time and a QR code of the address, left uncut and turned as kept. Answers the order's outcome — DELIVERED, NOT_DELIVERED or OUTCOME_UNKNOWN — and never fails because of the bridge. Each request prints one label. **Required permission:** `referential.printer-test-print:create`

POST/referential/v1/printer-test-prints

Has the printer at the address print one test label through the station's hardware bridge, in French: its address, the label size, darkness and speed kept for it where kept, the station's time and a QR code of the address, left uncut and turned as kept. Answers the order's outcome — DELIVERED, NOT_DELIVERED or OUTCOME_UNKNOWN — and never fails because of the bridge. Each request prints one label.

Required permission: referential.printer-test-print:create

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*PrintTestLabelRequest

Response Body

*/*

curl -X POST "https://example.com/referential/v1/printer-test-prints" \  -H "Content-Type: application/json" \  -d '{    "address": "string"  }'
{  "address": "string",  "order": "DELIVERED"}