{"uid":"cap_Y-PwdwBiWyKsZotTTAtWB","slug":"greeneris-data-gtin-barcode-validator-8c3d8a1a","name":"greeneris-data GTIN Barcode Validator","description":"Offline validation of product barcode numbers: EAN-8, UPC-A, EAN-13 and GTIN-14, using the GS1 mod-10 weighted checksum. Catches corrupted GTINs in supplier catalogs before marketplace publication (Amazon/Google reject invalid GTINs). Query: ?gtin=4006381333931. Returns valid flag, detected format, GS1 member-org prefix and the computed check digit. Deterministic, cached 1 year.","url":"https://data.greeneris.io/v1/logistics/gtin-check","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["gtin"],"properties":{"gtin":{"type":"string","description":"Barcode number: 8, 12, 13 or 14 digits (spaces/dashes tolerated)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"gtin":"4006381333931","valid":true,"format":"EAN-13","source":"GS1 mod-10 check-digit algorithm (offline, structure + checksum only)","gs1_prefix":"400","check_digit":1,"computed_check_digit":1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9OW8SaVDO37QTP1J_sdz6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a GTIN barcode number (EAN-8, UPC-12, EAN-13, ITF-14) by checking its structure and GS1 mod-10 check digit offline","exampleAgentPrompt":"Can you check if the barcode 4006381333931 is a valid GTIN? I want to know if the format and check digit are correct before I add it to our product database.","exampleUseCases":[{"title":"Bulk product catalog import validation","prompt":"We're importing 5,000 products from a new supplier and they've given us barcodes. Before we sync these to Amazon, can you quickly validate a sample batch of GTINs to make sure they're not corrupted or malformed? I need to know which ones have invalid check digits so we can reject them early."},{"title":"Warehouse receiving quality control","prompt":"Our warehouse team just scanned in a shipment of products using ITF-14 barcodes on the boxes. Can you verify that these barcode numbers are structurally valid and have the correct GS1 check digits? I want to catch any scanning errors or damaged labels before items hit the shelves."},{"title":"E-commerce listing error prevention","prompt":"We're building an automated system that prevents sellers from listing products with bad UPC codes. When someone uploads a new item, I need to instantly validate their barcode format and check digit offline — no database lookup needed, just tell me if it's a legitimate EAN-13 or UPC-12 before we let the listing go live."}],"resultDescription":"Returns a JSON object with the validated GTIN string, a boolean 'valid' field, the detected format (e.g. EAN-13), the GS1 prefix, the expected check digit, the computed check digit, and the source algorithm used (GS1 mod-10 offline structural check).","failureModes":["Missing 'gtin' query parameter returns error","Non-numeric or wrong-length barcode returns valid:false with format details","HTTP 402 returned before payment is made via x402 protocol — agent must pay in USDC on Base and retry","Malformed GTIN (wrong digit count) may return invalid rather than an error"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap ($0.001), offline structural validation of a GTIN barcode — it checks format and GS1 mod-10 checksum without querying any product database. Prefer this over full product lookup APIs when you only need to confirm a barcode is well-formed. Not suitable if you need product name, brand, or description associated with the barcode.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:39:53.631Z","isFirstParty":false}