{"uid":"cap_4nP5byiGgOvKgP19atjfG","slug":"postal-code-validator-18543f63","name":"Postal Code Validator","description":"Check whether a postal / ZIP code is well-formed for a country (ISO 3166-1 alpha-2). A malformed code is a successful result with `valid:false`, not an error — only an unsupported country or empty code is a 400.","url":"https://postal.openverbs.com/v1/validate","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":["country","code"],"properties":{"code":{"type":"string","description":"Postal / ZIP code to validate."},"country":{"type":"string","minLength":2,"description":"ISO 3166-1 alpha-2 country code, e.g. \"US\" (\"UK\" accepted as an alias for GB)."}},"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_nY0BI7BQFWMSAAJxBrEIR","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 whether a postal/ZIP code is well-formed for a given country using ISO 3166-1 alpha-2 country codes","exampleAgentPrompt":"Can you check whether '10001' is a valid postal code for the US?","exampleUseCases":[{"title":"E-commerce checkout address validation","prompt":"Before we complete the order, can you check whether 'SW1A 1AA' is a valid postcode for GB so I know the shipping address is well-formed?"},{"title":"User registration form pre-validation","prompt":"A new user entered 'H0H 0H0' as their postal code for Canada — is that actually a valid Canadian postal code format?"},{"title":"Bulk address data quality check","prompt":"I need to verify if '75008' is a properly formatted postal code for France before I import it into our CRM."}],"resultDescription":"Returns a JSON object indicating whether the provided postal/ZIP code is valid for the given country. A malformed code returns a successful response with valid:false rather than an error. Only unsupported country codes or empty inputs trigger a 400 error.","failureModes":["400 error if the country code is unsupported or not recognized","400 error if the postal code field is empty","Returns valid:false (not an error) for malformed but syntactically processable codes","May not reflect recent postal code changes if the underlying pattern database is outdated"],"whenToPreferThis":"Use this endpoint when you need a quick, lightweight format check on a postal or ZIP code before processing an address — ideal for e-commerce checkout flows, form validation, or data quality pipelines. Prefer this over full address validation services when you only need to confirm the code's structure, not its real-world existence or deliverability. Especially useful when you have the country code handy and want a binary valid/invalid result cheaply at $0.002 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:30:24.543Z","isFirstParty":false}