01. System Architecture & Data Flow Diagram
Both APIs execute at the Cloudflare Edge in < 5 ms with zero external runtime dependencies. Vector barcode geometry (Code 128 Subset C/B + FNC1 and ISO/IEC 18004 Reed-Solomon QR matrices) and Zebra ZPL-II command streams are compiled deterministically in memory.
• 2025 GS1 Country Prefix Registry
• Non-overlapping Regex & Segment Parser
• 2D QR Code: ISO/IEC 18004 GS1 Digital Link URI
• Quota Ledger (LABELS_KV): 4-Layer Free Tier & Pro Keys
^BCN + ^BQN) over Raw TCP Port 9100 (4×6")02. Authentication, Quotas & Credit Plans
The Validation API (ssccapi.com) is 100% free. The Commercial Pallet Label & ZPL API (ssccapi.com) includes 25 free pallet labels per company prefix (GCP) for evaluation. High-volume production requires an X-API-Key header (`sscc_pro_...`).
Generates single or batch GS1 Logistics Pallet Labels (1 to 500 units). Supports explicit SSCC arrays or sequential generation from a GS1 Company Prefix (gcp), optional Multi-AI trade item barcodes (AI 02 GTIN, AI 15 Best Before, AI 37 Count, AI 10 Batch/Lot), and 3 symbology modes (dual, gs1-128, qr).
| Parameter | Type | Value (Live Sandbox Input) | Description |
|---|---|---|---|
| gcpbody | string | GS1 Company Prefix (6 to 11 digits) | |
| startSerialbody | integer | Starting serial reference number | |
| quantitybody | integer | Number of sequential pallet labels (1–500) | |
| layoutenum | string | Choose full logistics label or standalone SSCC barcode strip | |
| symbologyenum | string | Barcode symbology mode on label | |
| formatenum | string | Response output format | |
| senderbody | string | Consignor / Sender company name (FROM) | |
| recipientbody | string | Consignee / Destination hub (TO) | |
| gtin / batchNo / expiryDatemulti-AI | string | Generates secondary upper GS1-128 barcode & enriches 2D QR Digital Link |
Dedicated endpoint for developers and ERPs that compose their own label layouts and only need the SSCC barcode(s). Use the type (or symbology) parameter to request the 1D GS1-128 linear barcode (gs1-128), the 2D QR Code GS1 Digital Link (qr), or both together / separated (both / dual). Alias GET /v1/qr is also supported.
| Parameter | Type | Value (Live Sandbox Input) | Description |
|---|---|---|---|
| ssccrequired | string | 17, 18, or 20-digit SSCC code (auto-computes check digit if 17 digits) | |
| typeenum | string | Choose which barcode(s) to generate: gs1-128, qr, or both (alias: symbology) |
|
| formatenum | string | Output format (svg image, json with separated assets, or zpl) |
|
| batchoptional | string | Optional Batch / Lot number (AI 10) encoded into 2D QR Digital Link |
Returns the remaining free label allowance (out of 25) for a GS1 Company Prefix / IP, or the remaining credit balance of the active X-API-Key passed in the header.
Validates an 18-digit SSCC (or 20-digit with AI 00), verifies the GS1 Modulo 10 check digit, and returns the GS1 member country and flag.
curl "https://ssccapi.com/validate?sscc=356012345600000016"const res = await fetch('https://ssccapi.com/validate?sscc=356012345600000016');
const data = await res.json();r = requests.get('https://ssccapi.com/validate', params={'sscc': '356012345600000016'})Computes the 18th GS1 Modulo 10 check digit for a 17-digit SSCC payload.
curl "https://ssccapi.com/generate?body=35601234560000001"const res = await fetch('https://ssccapi.com/generate?body=35601234560000001');r = requests.get('https://ssccapi.com/generate', params={'body': '35601234560000001'})Expands a range of SSCC codes (up to 500 units) and computes check digits for every code.
Identifies the GS1 Member Organization country and ISO code for an SSCC prefix.
Extracts and validates all SSCCs from raw EDIFACT (GIN+BJ, RFF+SI), SAP IDoc (EXIDV), XML, or CSV payloads (max 1 MB).
03. Industrial Integration Manuals (Zebra TCP/IP & ERP)
Industrial Zebra thermal printers (ZT411, ZT231, GK420d, ZD421) listen on Raw TCP Port 9100 (JetDirect protocol). You can pipe the ZPL-II response from POST /v1/labels directly to your warehouse printer over the local network without drivers.
A. Direct Linux / Bash Dispatch to Zebra Printer (Port 9100)
# Generate Dual (1D GS1-128 + 2D QR Digital Link) ZPL and pipe directly to Zebra printer IP 192.168.1.200:9100
curl -s -X POST "https://ssccapi.com/v1/labels" \
-H "Content-Type: application/json" \
-H "X-API-Key: sscc_pro_YOUR_KEY" \
-d '{"gcp":"5601234","startSerial":1001,"quantity":5,"symbology":"dual","format":"zpl"}' \
| nc -w 2 192.168.1.200 9100
B. Python / Odoo / Warehouse WMS Socket Integration
import socket, requests
def print_gs1_pallet_batch(api_key, zebra_ip, gcp, start_serial, qty, lot_no):
res = requests.post(
"https://ssccapi.com/v1/labels",
headers={"X-API-Key": api_key, "Content-Type": "application/json"},
json={
"gcp": gcp,
"startSerial": start_serial,
"quantity": qty,
"symbology": "dual",
"batchNo": lot_no,
"format": "zpl"
},
timeout=5
)
res.raise_for_status()
with socket.create_connection((zebra_ip, 9100), timeout=3) as printer:
printer.sendall(res.text.encode("utf-8"))
print(f"Dispatched {qty} GS1 labels to Zebra {zebra_ip}:9100")
C. HTTP Status & Error Reference
| HTTP Code | Error Code | Description & Resolution |
|---|---|---|
| 200 OK | OK | Labels or validation results generated. Check X-Credits-Remaining header. |
| 400 Bad Request | INVALID_INPUT | Malformed SSCC check digit, invalid GCP length (must be 6–11 digits), or batch > 500. |
| 401 Unauthorized | INVALID_API_KEY | The provided X-API-Key does not exist. Verify your key or claim by purchase email. |
| 402 Payment Required | FREE_QUOTA_EXCEEDED | 25 free labels reached for this GS1 Company Prefix / IP, or Pro key credits exhausted. |
| 429 Too Many Requests | RATE_LIMITED | Validation API rate limit (500 req/hr per IP) exceeded. |