{"uid":"cap_yEP-bK2XMv0PMLWppUVjz","slug":"writerslogic-gtin-hierarchy-validator-1ca9d362","name":"WritersLogic GTIN Hierarchy Validator","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/gtin-hierarchy?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","required":["gtin"],"properties":{"gtin":{"type":"string","maxLength":32,"minLength":1},"parent":{"type":"string","maxLength":32,"description":"Another GTIN that should be a packaging level of the same base item (for example the case GTIN-14 of a consumer unit)."}}},"maxItems":100,"minItems":1}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NkfIRgNpm6qkGK9HaGARI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates up to 100 GTINs by checking their check digits, normalizing to 14-digit form, decoding GS1 prefix and indicator digit, and verifying parent-child packaging hierarchy links.","exampleAgentPrompt":"Can you validate these GTINs from our product feed — 00012345678905, 9780306406157, and 10012345678902 — and for the last one check that it's correctly linked as the case-level parent of 00012345678905?","exampleUseCases":[{"title":"Product feed reconciliation before import","prompt":"I've got a CSV export of 80 GTINs from our supplier — can you validate all their check digits, convert them to 14-digit form, and flag any that have invalid check digits or fall into restricted GS1 prefix ranges before I import them into our catalog?"},{"title":"Order line barcode sanity check","prompt":"Before we submit this batch of 50 order lines to the warehouse, please check every GTIN for a valid check digit and tell me which ones are malformed so I can fix them first."},{"title":"Packaging hierarchy link verification","prompt":"We have a consumer unit GTIN 00012345678905 and its supposed case GTIN 10012345678902 — can you confirm they both have valid check digits and that they actually share the same base item so the packaging hierarchy is correct?"}],"resultDescription":"For each submitted GTIN: whether the check digit is valid, the normalized 14-digit representation, the indicator digit, the decoded GS1 prefix with any special classification (restricted circulation, ISBN/ISSN range, coupon), and — when a parent GTIN is provided — whether the two GTINs share the same base item confirming the packaging-level link. Does not perform registry lookup, brand owner resolution, or country-of-origin identification.","failureModes":["GTIN string contains non-numeric characters — validation fails for that item","GTIN length is outside valid ranges (8, 12, 13, or 14 digits) — rejected with format error","Check digit is incorrect — flagged as invalid but other fields may still be decoded","Parent GTIN provided has an invalid check digit itself — hierarchy check cannot proceed","Batch exceeds 100 items — request rejected","Empty items array — request rejected"],"whenToPreferThis":"Use this endpoint when you need fast, offline-style structural validation of GTINs without requiring network registry lookups — ideal for pre-import feed cleaning, order reconciliation, or packaging hierarchy checks. Prefer this over a full GS1 registry lookup when you only need format correctness and hierarchy consistency, not brand or product data. It is especially useful when processing large batches (up to 100) in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T12:36:25.056Z","isFirstParty":false,"canonicalSlug":"writerslogic-gtin-hierarchy-validator-1ca9d362"}