EDGE ENGINE Sub-2ms Deterministic V8 Execution • Zero Data Retention Explore API Specs →
Latency: <2ms Edge Availability: 99.99% Standard: FDA 21 CFR 801 / GS1 V8 Pure Compute

GS1 UDI Barcode Format & AI Parser Guide (GS1-128 & DataMatrix)

Parse GS1-128 linear barcodes and 2D DataMatrix medical device UDIs into structured DI/PI attributes in milliseconds.

Official Regulatory Standard & Verification Protocol Authority: FDA AccessGUDID Database & IMDRF ↗

Quick Technical Summary: Parse GS1-128 linear barcodes and 2D DataMatrix medical device UDIs into structured DI/PI attributes in milliseconds. Implementation conforms to FDA 21 CFR 801.20 / EU MDR 2017/745.

Execution SLA
<2ms Edge (Cloudflare V8)
Governing Norm
FDA 21 CFR 801 / GS1
Throughput Limit
512 KB / Payload
Data Privacy
100% In-Memory (Zero Store)

Specification & Structural Breakdown

GS1 UDIs utilize Global Trade Item Numbers (GTIN) as the Device Identifier (AI 01) and standardized Application Identifiers for Production Identifiers.

AIData ElementFormatFDA / MDR Role
(01)GTIN-1414 digits numeric with Mod-10Primary UDI-DI
(17)Expiration DateYYMMDD (6 digits)UDI-PI Expiration
(10)Batch / Lot1-20 alphanumeric charactersUDI-PI Lot Number
(21)Serial Number1-20 alphanumeric charactersUDI-PI Serial Number
(11)Manufacturing DateYYMMDD (6 digits)UDI-PI Production Date
Interactive Edge Validator

Test GS1 UDI Barcode Format & AI Parser Guide (GS1-128 & DataMatrix) Live

Paste raw inputs up to 32KB and inspect deterministic parsed JSON in real-time across 330+ Cloudflare edge locations. Pure compute, zero cold-starts.

Launch Workbench →

Parsed JSON Response Model

The edge microservice transforms input payloads into strongly-typed hierarchical JSON with zero cold starts:

HTTP 200 JSON Payload
{
  "issuingAgency": "GS1",
  "di": "00884838012345",
  "pi": {
    "expirationDate": "2026-08-31",
    "lotNumber": "LOT7788",
    "serialNumber": "SN991823"
  }
}

Copy-Paste Integration Code

Integrate this validator directly into your application using your production API key:

cURL
curl --request POST \
  --url "https://fda-eu-mdr-medical-device-udi-decoder-gs1-hibcc-iccbba.stanzaapi.com/api/v1/udi/decode" \
  --header "Content-Type: application/json" \
  --header "x-api-key: YOUR_API_KEY" \
  --data '{
  "udi": "(01)00884838012345(17)260831(10)LOT7788(21)SN991823"
}'
Node.js (Fetch)
const response = await fetch("https://fda-eu-mdr-medical-device-udi-decoder-gs1-hibcc-iccbba.stanzaapi.com/api/v1/udi/decode", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "x-api-key": process.env.API_KEY || "YOUR_API_KEY"
  },
  body: JSON.stringify({
  "udi": "(01)00884838012345(17)260831(10)LOT7788(21)SN991823"
})
});

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

url = "https://fda-eu-mdr-medical-device-udi-decoder-gs1-hibcc-iccbba.stanzaapi.com/api/v1/udi/decode"
headers = {
    "Content-Type": "application/json",
    "x-api-key": "YOUR_API_KEY"
}
payload = {
    "udi": "(01)00884838012345(17)260831(10)LOT7788(21)SN991823"
}

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://fda-eu-mdr-medical-device-udi-decoder-gs1-hibcc-iccbba.stanzaapi.com/api/v1/udi/decode"
	payload := []byte(`{"udi":"(01)00884838012345(17)260831(10)LOT7788(21)SN991823"}`)

	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 & Technical Notes

Is GTIN check digit validation included?

Yes, the Modulo-10 check digit is verified on the GTIN-14 Device Identifier.

Related Medical Device UDI Barcode & AIDC Engine Formats

Explore sibling specifications and standards in the same developer cluster: