{"uid":"cap_Opafw59eU_d0vAyqvAYK8","slug":"api-strale-io-cba53310","name":"SWIFT/BIC Code Validator","description":"Validate a SWIFT/BIC code. Checks format, length, and country code. Extracts bank code, location, and branch. Pure algorithmic — instant and cheap.","url":"https://api.strale.io/x402/swift-validate?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["swift"],"properties":{"swift":{"type":"string","description":"SWIFT/BIC code (e.g. DABASESX)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"swift":"DABASESX"},"response":{"_meta":{"payment":{"method":"x402","price_usd":0.0324,"settlement_id":"0x50577ff705118ffaea740313bfd20a028970fe2640fb81453080a6b2bc6477f1"},"capability":"swift-validate","latency_ms":0,"provenance":{"source":"algorithmic","fetched_at":"2026-06-16T01:24:40.203Z"}},"valid":true,"bank_code":"DABA","swift_code":"DABASESX","branch_code":null,"country_code":"SE","location_code":"SX","is_head_office":true}},"exampleRequest":{"swift":"DABASESX"},"tags":["x402"],"displayCostAmount":"0.0324","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.0324/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0324","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0324","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZpM4IWnhcv8RojTIH1XTV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0324","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a SWIFT/BIC code by checking format, length, and country code, then extracts the bank code, location code, and branch code.","exampleAgentPrompt":"Can you check if the SWIFT code DABASESX is valid and tell me what bank and location it corresponds to?","exampleUseCases":null,"resultDescription":"Returns whether the SWIFT/BIC code is valid along with extracted components: bank code (first 4 characters), country code (characters 5-6), location code (characters 7-8), and branch code (characters 9-11 if present).","failureModes":["Invalid SWIFT format returns validation error with details on which component failed","Missing or empty swift query parameter returns 400 bad request","Non-existent or unrecognized country code in the BIC may still pass format validation but flag unknown country","Payment failure via x402 protocol returns 402 if USDC balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need instant, cheap, pure algorithmic validation of a SWIFT/BIC code without any external database lookup — ideal for pre-validating user-entered SWIFT codes in payment flows, onboarding forms, or data pipelines. It does not verify whether the bank actually exists in a live registry, only that the code is structurally correct.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T00:55:23.941Z","isFirstParty":false,"canonicalSlug":"api-strale-io-cba53310"}