{"uid":"cap_UVGEjoWstWmxeIz2kBYZy","slug":"gtin-barcode-check-digit-validator-6b5ea6cb","name":"GTIN Barcode Check Digit Validator","description":"Validate a UPC-A, EAN-8, EAN-13 or GTIN-14 barcode check digit and name its format.","url":"https://id-validators.x402tookit.com/gtin-check?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"The barcode number"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"format":{"type":["null","string"]},"length":{"type":["null","number"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"normalised":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jDR84wN_syyeTay3Sv9oh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates the check digit of a UPC-A, EAN-8, EAN-13, or GTIN-14 barcode and identifies its format.","exampleAgentPrompt":"Can you check whether the barcode 036000291452 is a valid barcode and tell me what format it is — UPC-A, EAN-13, or something else?","exampleUseCases":[{"title":"Retail product data entry validation","prompt":"Before we add this product to our catalog, can you verify that barcode 5901234123457 has a valid check digit and tell me what format it is?"},{"title":"E-commerce listing integrity check","prompt":"We're importing a supplier feed and some barcodes look suspicious — can you validate whether 00012345678905 is a legitimate GTIN-14 barcode with a correct check digit?"},{"title":"Point-of-sale error diagnosis","prompt":"A customer's item is failing to scan and the printed barcode reads 04006381333931 — can you check if the check digit is correct and identify the barcode format?"}],"resultDescription":"Returns a verdict (valid/invalid), the detected format (UPC-A, EAN-8, EAN-13, or GTIN-14), the normalized barcode string, its length, a human-readable summary, reasons for any failure, and metadata such as source and timestamp. A 'degraded' flag indicates partial service availability.","failureModes":["Missing or empty 'id' query parameter returns an error","Non-numeric or malformed input may return invalid verdict with reasons","Barcode length not matching any known format returns null format","Check digit mismatch returns invalid verdict with explanation","Network timeout or service degradation sets degraded flag"],"whenToPreferThis":"Use this endpoint when you need to verify the mathematical integrity of a retail or supply chain barcode (UPC-A, EAN-8, EAN-13, GTIN-14) before storing, displaying, or processing it. Prefer it over general-purpose regex checks because it applies the correct Luhn-style check digit algorithm per format and returns a structured verdict with the identified format name. For other identifier types (CUSIP, ISIN, ISBN, VIN, ISSN), use the sibling endpoints on the same platform.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:14:22.971Z","isFirstParty":false,"canonicalSlug":"gtin-barcode-check-digit-validator-6b5ea6cb"}