Open Inventory / Docs
EndpunkteLabel printingLabel print agentClaim

Claim the next job for a printer

Die API läuft auf deiner Anwendungsinstanz. Schemas und Feldnamen stammen unverändert aus der OpenAPI-Spezifikation. Browsergebundene Aufrufe benötigen eine Sitzung auf der Instanz.

POST
/label-print-agent/claim

Windows agent endpoint; use the dedicated iprt_ credential, not an inventory API token. Reuse claimId to recover the same claim. Stale claims become uncertain after five minutes and are never handed out again. History cleanup runs on polling after seven days.

Authentifizierung

printAgent
headerAuthentifizierungBearer <iprt_ token>

Dedicated printer credential issued once by POST /label-printers. Only valid for agent claim and acknowledgement.

Anfrageinhalt

application/json
  1. body
claimId*string
Formatuuid

Antwortinhalt

Claimed RAW data or null when no job is available.

application/json
  1. response
job*|null
Beispielanfrage
curl -X POST 'https://inventory.example.com/api/v1/label-print-agent/claim' \  -H 'Content-Type: application/json' \  -d '{  "claimId": "88057929-7728-4a26-8396-f965dcc8b947"}'
Beispielantwort
{  "job": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "data": "string",    "sha256": "string"  }}