PackPass EU PackPass EU ZPL-II // 4×6"
SPECIFICA WEBHOOK EDGE • COMPILAZIONE ZPL II < 5 MS

API POST /api/zpl-compile & configurazione stampanti

Compilatore Edge stateless che genera su richiesta gli stream ZPL II per l'etichetta 50×30 mm e la scheda accompagnatoria 100×150 mm.

Specifica HTTP e codici di stato

HTTP Status Behavior & Payload
200 OK Restituisce computeMs, byteLength, trimanCaliperMm, zplTag50x30 e zplInsert100x150.
400 Bad Request Payload JSON non valido.
422 Unprocessable Entity Categoria bloccata: cosmetici (1223/2009), miscele CLP/UFI o giocattoli (EN 71).
Esempio cURL su Edge
curl -X POST https://packpasseu.com/api/zpl-compile \
  -H "Content-Type: application/json" \
  -d '{
    "category": "apparel",
    "dpi": 203,
    "primaryInsertLang": "FR",
    "materialSlugs": ["pap-20", "ldpe-04", "pap-22"],
    "sku": "MERINO-BLK-04",
    "lot": "LOT-2026-W46",
    "productName": "Heavyweight Merino Ribbed Beanie",
    "manufacturerName": "NorthLoom Knitwear Ltd",
    "manufacturerAddress": "Unit 4 Albion Mills, Manchester, UK",
    "manufacturerEmail": "[email protected]",
    "euRpName": "NorthLoom EU Compliance B.V.",
    "euRpAddress": "Keizersgracht 482, Amsterdam, NL",
    "euRpEmail": "[email protected]"
  }'
Tester interattivo del compilatore (Endpoint live + fallback locale) READY
 
SHOPIFY FLOW • BASELINKER • RAW TCP/9100

Flussi di integrazione magazzino

STAMPANTE ZPL / WEBHOOK

Azioni Automatiche BaseLinker

  1. Trigger: creazione etichetta corriere.
  2. Condizione: Paese di spedizione in FR, IT, DE, PL, AT, BE, ES, NL.
  3. Webhook: POST https://packpasseu.com/api/zpl-compile con SKU e lingua.
  4. Stampa: inviare zplInsert100x150 alla stampante termica configurata.
AZIONE HTTP FLOW

Shopify Flow + PrintNode

  1. Trigger: ordine pronto per la spedizione.
  2. Chiamata HTTP con SKU e shippingAddress.countryCodeV2.
  3. Inoltro grezzo dello stream ZPL a PrintNode per la stampante Zebra/Rollo 4×6".
RETE LOCALE

Invio diretto TCP/9100

  1. Scaricare il file .zpl oppure interrogare /api/zpl-compile.
  2. Inviare i byte grezzi sulla porta 9100 (lpr -o raw o Zebra Setup Utilities).