{"uid":"cap_RPsbV5NvM-n5e7edM5qRK","slug":"gs1-element-string-parser-validator-9a54b8cd","name":"GS1 Element String Parser & Validator","description":"Reconstruct GS1 element strings into ordered application identifiers, check digits, explicit-century dates and exact decimal measures.","url":"https://detect.halowerk.com/v1/F-TD2000-DOCUMENTS-06/gs1-element-string-predefined-variable-ai-decimal-date-projection?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"artifact":{"type":"object","required":["gs1Elements"],"properties":{"gs1Elements":{"type":"object","required":["data","claim"],"properties":{"data":{"type":"object","required":["element_string","year_century"],"properties":{"year_century":{"enum":[1900,2000,2100]},"element_string":{"type":"string","maxLength":2048,"minLength":1}},"additionalProperties":false},"claim":{"anyOf":[{"type":"null"},{"type":"object","required":["elements","all_local_syntax_semantics_valid"],"properties":{"elements":{"type":"array","items":{"type":"object","required":["ai","value","check_digit_valid","date","decimal_value","semantic_valid"],"properties":{"ai":{"type":"string","maxLength":4,"minLength":1},"date":{"anyOf":[{"type":"null"},{"type":"string","maxLength":10,"minLength":1}]},"value":{"type":"string","maxLength":20,"minLength":1},"decimal_value":{"anyOf":[{"type":"null"},{"type":"string","maxLength":24,"minLength":1}]},"semantic_valid":{"type":"boolean"},"check_digit_valid":{"anyOf":[{"type":"null"},{"type":"boolean"}]}},"additionalProperties":false},"maxItems":64,"minItems":1},"all_local_syntax_semantics_valid":{"type":"boolean"}},"additionalProperties":false}]}},"additionalProperties":false}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_y9FGb-mx0qPC8e12AkLnY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses and validates GS1 element strings by reconstructing ordered application identifiers, verifying check digits, resolving explicit-century dates, and extracting exact decimal measures.","exampleAgentPrompt":"Parse this GS1 element string '(01)09521234543213(17)251231(10)ABC123' using century 2000 and tell me if the check digit is valid, what the expiry date resolves to, and whether all the application identifiers are semantically valid.","exampleUseCases":[{"title":"Pharmaceutical barcode traceability check","prompt":"I have a GS1 element string from a drug package label: '(01)00377700000125(17)261130(10)LOT4892' — can you parse it with century 2000 and confirm the GTIN check digit is valid and the expiry date is correct?"},{"title":"Retail GTIN and lot number extraction","prompt":"Extract all the application identifiers from this GS1 string '(01)04006381333931(3103)001750' using year century 2000, and tell me the decimal value of the net weight field."},{"title":"Supply chain element string pre-shipment validation","prompt":"Before we ship this pallet, validate whether this GS1 element string '(00)395123451234567895(13)240615' has a valid check digit and a properly resolved century-aware date — use century 2000."}],"resultDescription":"Returns a structured object containing an array of parsed GS1 application identifier elements, each with its AI code, raw value, check digit validity status, resolved explicit-century date (if applicable), decimal value (if applicable), and a semantic validity flag, plus an overall boolean indicating whether all local syntax and semantics are valid.","failureModes":["Element string malformed or unparseable — returns validation error","Unsupported or unknown application identifier — semantic_valid set to false","Check digit mismatch — check_digit_valid returns false","Year century enum value not one of 1900, 2000, or 2100 — schema validation error","Element string exceeds 2048 character limit — rejected at input validation","Empty element string — rejected with minLength constraint error","Claim object provided but contradicts parsed data — mismatch flagged in response"],"whenToPreferThis":"Choose this endpoint when you need to rigorously parse and validate GS1 element strings — especially when century disambiguation for date AIs (e.g. expiry, production date) is critical, check digit correctness must be confirmed, or decimal AI values need exact extraction. Prefer this over generic barcode decoders when GS1 AI semantics and standards-compliance validation matter, such as in pharmaceutical traceability, retail receiving, or supply chain automation workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:42:53.119Z","isFirstParty":false,"canonicalSlug":"gs1-element-string-parser-validator-9a54b8cd"}