{"uid":"cap_-n-nUL_a3tcOTmhZfknES","slug":"agentshield-gtin-check-digit-validator-84bf0691","name":"AgentShield GTIN Check Digit Validator","description":"Call when an agent has a GTIN-8, GTIN-12, GTIN-13, or GTIN-14 and needs the GS1 check digit. Not a product or a price.","url":"https://agentshield.live/gtin?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":["code"],"properties":{"code":{"type":"string","description":"GTIN-8, GTIN-12, GTIN-13, or GTIN-14 digits."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"known":true,"valid":true,"length":13,"check_digit":"3"}},"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_GvlFyCEEAKU1YQ9hFi0YA","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":"Computes and validates the GS1 check digit for a GTIN-8, GTIN-12, GTIN-13, or GTIN-14 barcode number","exampleAgentPrompt":"Can you validate the GS1 check digit for this barcode: 012345678905?","exampleUseCases":[{"title":"Validate EAN-13 barcode before printing","prompt":"I'm about to print product labels with the barcode 4006381333931 — can you verify that the GS1 check digit is correct before I send it to the printer?"},{"title":"Verify UPC-A code on data entry","prompt":"A warehouse worker just manually keyed in this UPC-12 barcode 012345678905 — can you check whether the check digit is valid so we can catch any typos?"},{"title":"Compute check digit for new GTIN-14 case code","prompt":"We're creating a new GTIN-14 shipping case code and the digits without the check digit are 1001234567890 — can you calculate what the correct GS1 check digit should be?"}],"resultDescription":"Returns the GS1 check digit result for the submitted GTIN code, indicating whether the check digit is valid and what the correct check digit is.","failureModes":["Invalid or non-numeric input returns an error response","GTIN length not matching any supported format (8, 12, 13, or 14 digits) returns an error","Missing required 'code' query parameter returns a 400 error","Network timeout or service unavailability returns a 5xx error"],"whenToPreferThis":"Use this endpoint when you have a raw GTIN code (barcode number) and need to verify or compute its GS1 check digit. It is focused solely on the mathematical checksum — not product lookup, pricing, or retailer data. Prefer this over general product databases when you only need digit validation without any product metadata.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T12:34:52.618Z","isFirstParty":false,"canonicalSlug":"agentshield-gtin-check-digit-validator-84bf0691"}