EDGE ENGINE Sub-2ms Deterministic V8 Execution • Zero Data Retention Explore API Specs →
<5ms Edge Latency 99.9% SLA Available V8 Pure Compute Retail & Supply Chain

GS1 Barcode & Digital Link Decoder (Sunrise 2027) API

Universal GS1 barcode and 2D Digital Link parser designed for the Sunrise 2027 transition from 1D UPC/EAN to 2D DataMatrix and QR web codes.

Interactive Edge Workbench

⚡ Live Pure-Compute Playground

Test deterministic edge parsing with sub-2ms execution across 330+ Cloudflare V8 edge locations. Zero persistent storage, zero cold-starts, pure function $f(x)=y$.

32KB Demo Cap 60 req/min Burst <2ms V8 Compute Zero Data Retention
input.txt 0 B
output.json demo-ready
Status: Ready
{
  "status": "Click 'Run Edge Parse' to test live on Global Edge Isolates..."
}
Need 512KB+ Payloads, High-Throughput & 99.9% Production SLA?
Direct API keys include pooled monthly quotas, zero cold-starts, and optional HIPAA Business Associate Agreements.
Get Production API Key →

Key Capabilities & Performance Architecture

Application Identifier (AI) Specifications (6 Specifications)

Explore full structural breakdowns, checksum logic, and field schemas for every supported format.

API Endpoints & Request Signatures

Method Path Description
POST /api/v1/gs1/decode Decode raw GS1 barcode string or FNC1 stream into JSON
POST /api/v1/gs1/digital-link/parse Parse GS1 Digital Link URI into structured AI key-value pairs

Sample Response JSON Payload

All endpoints deliver strongly-typed envelopes with deterministic parsing and performance metrics.

HTTP 200 Response Payload
{
  "success": true,
  "data": {
    "gtin": "00012345678905",
    "gtinCheckDigitValid": true,
    "attributes": {
      "10": {
        "name": "Batch/Lot",
        "raw": "LOT123",
        "value": "LOT123"
      },
      "17": {
        "name": "Expiration Date",
        "raw": "260831",
        "value": "2026-08-31"
      },
      "21": {
        "name": "Serial Number",
        "raw": "SN9988",
        "value": "SN9988"
      },
      "01": {
        "name": "GTIN",
        "raw": "00012345678905",
        "value": "00012345678905"
      }
    },
    "digitalLinkUri": "https://id.gs1.org/01/00012345678905/21/SN9988?10=LOT123&17=260831"
  },
  "meta": {
    "latency_ms": 1.25,
    "version": "1.0.0"
  }
}

Multi-Language Integration Code

Copy and paste ready-to-run snippets with your direct API credentials:

cURL
curl --request POST \
  --url "https://gs1-barcode-digital-link-decoder-sunrise-2027.stanzaapi.com/api/v1/gs1/decode" \
  --header "Content-Type: application/json" \
  --header "x-api-key: YOUR_API_KEY" \
  --data '{
  "barcode": "010001234567890510LOT123\u001d1726083121SN9988"
}'
Node.js (Fetch)
const response = await fetch("https://gs1-barcode-digital-link-decoder-sunrise-2027.stanzaapi.com/api/v1/gs1/decode", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "x-api-key": process.env.API_KEY || "YOUR_API_KEY"
  },
  body: JSON.stringify({
  "barcode": "010001234567890510LOT123\u001d1726083121SN9988"
})
});

const data = await response.json();
console.log(data);
Python (Requests)
import requests
import json

url = "https://gs1-barcode-digital-link-decoder-sunrise-2027.stanzaapi.com/api/v1/gs1/decode"
headers = {
    "Content-Type": "application/json",
    "x-api-key": "YOUR_API_KEY"
}
payload = {
    "barcode": "010001234567890510LOT123\u001d1726083121SN9988"
}

response = requests.post(url, json=payload, headers=headers)
print(response.json())
Go
package main

import (
	"bytes"
	"fmt"
	"io"
	"net/http"
	"os"
)

func main() {
	url := "https://gs1-barcode-digital-link-decoder-sunrise-2027.stanzaapi.com/api/v1/gs1/decode"
	payload := []byte(`{"barcode":"010001234567890510LOT123\u001d1726083121SN9988"}`)

	req, _ := http.NewRequest("POST", url, bytes.NewBuffer(payload))
	req.Header.Add("Content-Type", "application/json")
	req.Header.Add("x-api-key", os.Getenv("API_KEY"))

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)
	fmt.Println(string(body))
}

Frequently Asked Questions

What is GS1 Sunrise 2027?

Sunrise 2027 is the global retail initiative transitioning point-of-sale systems from traditional 1D EAN/UPC barcodes to 2D barcodes (QR codes with GS1 Digital Link and GS1 DataMatrix).

How are variable-length GS1 Application Identifiers separated?

Variable-length elements (like Lot number AI 10 and Serial number AI 21) use the ASCII 29 group separator (<GS> or FNC1) to signal the end of data when followed by another AI.