{"uid":"cap_-eaU8rKrJGMfVhG6IMGgC","slug":"agentshield-postal-code-format-validator-fe2aca13","name":"AgentShield Postal Code Format Validator","description":"Call when an agent needs to know whether a postal code matches the stored format for a country. Not an address, a city, or a delivery check. Unknown countries return 404.","url":"https://agentshield.live/postcode?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":["country","code"],"properties":{"code":{"type":"string","description":"Postal code to check against the stored format."},"country":{"type":"string","description":"ISO country code or English short name."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"code":"10115","known":true,"valid":true,"country":"DE"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_l3DlTPCWEyWqoj0IgsEKk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates whether a given postal code matches the expected format stored for a specific country.","exampleAgentPrompt":"Can you check whether '10115' is the right format for a postal code in Germany?","exampleUseCases":[{"title":"E-commerce checkout address validation","prompt":"Before we process the order, can you verify that the postal code 'SW1A 1AA' is correctly formatted for the United Kingdom?"},{"title":"User registration form validation","prompt":"A user in Canada entered 'K1A 0A9' as their postal code — does that match the expected format for Canada?"},{"title":"Shipping label quality check","prompt":"I'm about to generate a shipping label to Japan with postal code '100-0001' — can you confirm that format is correct for Japan?"}],"resultDescription":"Returns whether the provided postal code matches the stored format for the given country. Returns a validation result (match or mismatch). Returns a 404 if the country is unknown or not supported.","failureModes":["Unknown or unsupported country returns 404","Postal code missing from request returns validation error","Country code malformed or unrecognized returns 404","Format mismatch returns a negative/false result rather than an error","Network timeout or service unavailability"],"whenToPreferThis":"Use this endpoint when you need to check only whether a postal code string matches the expected format for a country — not for full address validation, delivery feasibility, geocoding, or city lookups. Ideal for form validation pipelines, data quality checks, or pre-processing steps before submitting address data to a carrier or payment system.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T00:30:59.585Z","isFirstParty":false,"canonicalSlug":"agentshield-postal-code-format-validator-fe2aca13"}