How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

SWIFT Account Numbers API

Account number format validation

SWIFT Account Numbers API is one of 21 APIs that SWIFT publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 1 JSON Schema definition.

Tagged areas include Account Numbers. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and 1 JSON Schema.

This API exposes 2 operations across 2 paths, and defines 10 schemas. It is described by OpenAPI 3.2.0, at version 1.0.

Requests are made against 5 base URLs: https://api.swift.com/swiftrefdata, https://sandbox.swift.com/swiftrefdata, https://api.swift.com/swiftrefdata/v4, https://sandbox.swift.com/swiftrefdata/v4, https://api-test.swift.com/swiftrefdata/v4.

2 operations 2 paths 10 schemas 2 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0
Base URL
https://api.swift.com/swiftrefdata
Authentication
OAuth 2.0, HTTP Bearer
Resource Areas
1

Authentication & Security 2

SWIFT Account Numbers API declares 2 security schemes for authenticating requests. It supports OAuth 2.0 (OAuth2) using the password flow, exposing 2 scopes. It accepts HTTP bearer tokens (opaque OAuth 2.0) (oauthBearerToken).

  • oauthBearerToken — Use the access token obtained as a result of OAuth 2.0 flows. SWIFT supports two OAuth grant types depending on the API service. JWT-Bearer grant type [RFC 752…

Paths & Operations 2

Across 2 paths, the API surfaces 2 operations — 2 GET. Each is listed below with its method, path, parameters, and response codes.

Account Numbers 2

Account number format validation

GET
/v2/account_numbers/{account_number}/validity
Validate Account Number
validateAccountNumber 1 param → 200400
GET
/account_numbers/{account_number}/validity
Check validity of account number formats, including IBANs
getAccountNumberValidity 6 params → 200400401404405406default

Schemas 10

The contract defines 10 schemas that model the data the API accepts and returns. The most detailed are Error (5 properties), ValidityResult (3 properties), AccountNumberValidity (2 properties), Errors (1 property). Each schema is shown below with its type and property counts.

ValidityResult
object
3 properties
Bic
string
Bank Identifier Code - ISO 9362
CountryCode
string
2-character ISO 3166-1 country code
StringMax70
string
Generic string definition, from 1 to 70 characters long
FullAccountNumber
Error
object
Custom error schema to support detailed error message.
5 properties 3 required
Errors
object
1 property 1 required
StringMax255
string
Generic string definition, from 1 to 255 characters long
BooleanAsString
string
AccountNumberValidity
object
2 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

swift-account-numbers-api-openapi.yml Raw ↑

Other APIs SWIFT publishes across the network.

Payment Pre-validation API
Transaction Screening API
SWIFT BBANs API
SWIFT BICs API
SWIFT Country Codes API
SWIFT Currency Codes API
SWIFT LEIs API
SWIFT National IDs API
SWIFT IBANs API
SWIFT Account Information API
SWIFT Distributions API
SWIFT Fileact API
Where this information came from

This is an independent, third-party profile of SWIFT Account Numbers API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.