{"uid":"cap_Pm6pVy2BUwZI1qmZ2YC8Y","slug":"2s-io-bic-swift-code-validator-9eb6e0e4","name":"2s.io BIC/SWIFT Code Validator","description":"Validate a SWIFT/BIC code (ISO 9362): 8 or 11 characters = 4-letter institution + 2-letter ISO country + 2-char location + optional 3-char branch, with the country position checked against ISO 3166. Returns {valid, bic, institution, country, location, branch, reason}. Structure validation only — not a SWIFT-directory existence lookup.","url":"https://2s.io/api/validate/bic","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"required":["bic"],"properties":{"bic":{"type":"string","description":"8 or 11-char BIC/SWIFT (spaces allowed, case-insensitive)."}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"bic":"DEUTDEDB"}}},"response":{"data":{"ok":true,"items":[{"bic":"DEUTDEDB","input":"DEUTDEDB","valid":true,"branch":null,"reason":null,"country":"DE","location":"DB","institution":"DEUT"}],"total":1,"source":{"url":"https://2s.io","license":"No upstream license — computed by 2s.io","provider":"2s.io BIC validator"}},"meta":{"cost":{"usd":0.001,"tier":0},"caller":"x402","version":null,"endpoint":"validate.bic","settlement":{"txHash":"0x13d17a1b95aa6a8a43316fa7be756196285912bc78136829f124df7316dbca56","network":"eip155:8453","success":true}}}},"exampleRequest":{"bic":"DEUTDEDB"},"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iJ1LQYqpVvyiZ6L228xYn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates the structure and format of a SWIFT/BIC code (ISO 9362) and returns parsed components including institution, country, location, and branch.","exampleAgentPrompt":"Can you check if DEUTDEDB is a valid BIC/SWIFT code and tell me what bank and country it belongs to?","exampleUseCases":null,"resultDescription":"Returns a JSON object with: valid (boolean), bic (normalized code), institution (4-letter bank code), country (2-letter ISO code), location (2-char location code), branch (3-char branch code or null), and reason (error description if invalid).","failureModes":["Missing bic query parameter returns an error response","BIC shorter than 8 or longer than 11 characters returns valid:false with a reason","Invalid country code position (not matching ISO 3166) returns valid:false","Non-alphabetic characters in wrong positions return valid:false","This is structure validation only — a structurally valid BIC may not exist in the SWIFT directory"],"whenToPreferThis":"Use this endpoint when you need to validate the format and structure of a BIC/SWIFT code before sending an international wire transfer or when building forms that accept bank identifiers. It is lightweight, inexpensive, and returns parsed components. Note: it does NOT verify the code exists in the live SWIFT directory — use a SWIFT directory lookup for existence checks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:21:24.870Z","isFirstParty":false}