{"uid":"cap_IlAbg95IUYjyiXnQlfBQa","slug":"gtin-ean-barcode-check-digit-validator-7ad1f398","name":"GTIN/EAN Barcode Check Digit Validator","description":"Validate a GTIN barcode number — EAN-8, UPC-A (12), EAN-13 or GTIN-14 — by the standard mod-10 check digit. Length selects the scheme.","url":"https://checkdigit.openverbs.com/v1/ean","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["number"],"properties":{"number":{"type":"string","maxLength":32,"minLength":1,"description":"8, 12, 13 or 14 digit GTIN (spaces/hyphens allowed)."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0jTBHcMKhio2P7JWXwbe4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates EAN-8, UPC-A (12-digit), EAN-13, or GTIN-14 barcode numbers using the standard mod-10 check digit algorithm.","exampleAgentPrompt":"Can you check whether the barcode number 0614141999996 is a valid EAN-13? I want to make sure it passes the mod-10 check digit before I add it to my product catalog.","exampleUseCases":[{"title":"E-commerce product listing validation","prompt":"Before I upload these products to my store, can you verify that the barcode 012345678905 is a valid UPC-A? I don't want to list items with bad barcodes."},{"title":"Retail inventory data quality check","prompt":"I'm cleaning up our inventory database — can you validate whether 5901234123457 is a properly formed EAN-13 barcode with a correct check digit?"},{"title":"Shipping label GTIN verification","prompt":"We're printing GTIN-14 labels for a shipment — can you confirm that 10614141000415 passes the standard check digit test before we send it to the warehouse?"}],"resultDescription":"Returns a pass/fail validation result indicating whether the provided barcode number has a correct mod-10 check digit. The length of the input determines which GTIN scheme (EAN-8, UPC-A, EAN-13, or GTIN-14) is applied. Spaces and hyphens in the input are tolerated.","failureModes":["Invalid length: number is not 8, 12, 13, or 14 digits after stripping spaces/hyphens","Non-numeric characters that are not spaces or hyphens cause a rejection","Check digit mismatch: number fails mod-10 validation and is flagged as invalid","Empty or missing 'number' field returns a schema validation error","Network timeout or service unavailability returns a 5xx error"],"whenToPreferThis":"Choose this endpoint when you need fast, lightweight validation of a GTIN-family barcode (EAN-8, UPC-A, EAN-13, GTIN-14) using the standard mod-10 check digit algorithm. It is ideal for pre-validation in e-commerce product onboarding, inventory management, and supply chain workflows. Prefer it over full barcode lookup services when you only need to confirm structural validity, not product metadata. Sibling endpoints on the same platform handle ISBN, IMEI, Luhn (credit card), and ABA routing number validation separately.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:31:39.059Z","isFirstParty":false}