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 National IDs API

National ID lookup and BIC resolution

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

This API exposes 3 JSON Schema definitions.

Tagged areas include National IDs. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and 3 JSON Schemas.

This API exposes 6 operations across 6 paths, and defines 36 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.

6 operations 6 paths 36 schemas 6 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 National IDs 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 6

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

National IDs 6

National ID lookup and BIC resolution

GET
/v2/national_ids/{national_id}
Get National ID Details
getNationalId 1 param → 200404
GET
/v2/national_ids/{national_id}/validity
Validate National ID
validateNationalId 1 param → 200
GET
/v2/national_ids/{national_id}/bics
Get BICs for National ID
getBicsForNationalId 1 param → 200
GET
/national_ids/{national_id}
Get details of a National ID
getNationalIdDetails 4 params → 200400401404405406default
GET
/national_ids/{national_id}/validity
Check the Validity of a National ID
getNationalIdValidity 3 params → 200400401404405406default
GET
/national_ids/{national_id}/bics
Get BICs of a National ID
getBicsFromNationalId 3 params → 200400401404405406default

Schemas 36

The contract defines 36 schemas that model the data the API accepts and returns. The most detailed are StructuredAddress (14 properties), NationalIdDetails_3 (13 properties), NationalIdDetails_2 (13 properties), BicDetails (7 properties). Each schema is shown below with its type and property counts.

ValidityResult
object
3 properties
BicDetails
object
7 properties
NationalIdDetails
object
5 properties
UnstructuredAddress
object
ISO-compliant unstructured address
3 properties 1 required
Bic
string
Bank Identifier Code - ISO 9362
Errors
object
1 property 1 required
LanguageCode
string
ISO 639-2 code (three letters) of language
TimeOffset
string
Difference in hours and minutes between two places
BooleanAsString
string
CountryName
StringMax35
string
Generic string definition, from 1 to 35 characters long
NationalIdScheme
NationalIdDetailsFound
object
1 property 1 required
NationalIdCode
string
National identifier of the institution or branch.
ValidNationalIdWithValidityFlag
object
Valid National ID with a flag stating it really is.
5 properties 2 required
CountryCode
string
2-character ISO 3166-1 country code
StructuredAddress
object
ISO-compliant structured address
14 properties 2 required
StringMax20
string
Generic string definition, from 1 to 20 characters long
OfficeType
string
Status of the entity in the office hierarchy
StringMax70
string
Generic string definition, from 1 to 70 characters long
BdpNationalIdScheme
Error
object
Custom error schema to support detailed error message.
5 properties 3 required
IsoPostalCode
string
Identifier consisting of a group of letters and/or numbers that is added to a postal address to assist the sorting of mail
NationalIdDetails_2
object
13 properties 4 required
StringMax255
string
Generic string definition, from 1 to 255 characters long
BicsFound
object
1 property 1 required
Iso5NationalIdScheme
string
ID type by ISO
LanguageScript
string
ISO 15924 code (four letters) of language script
StringMax16
string
Generic string definition, from 1 to 16 characters long
StringMax140
string
Generic string definition, from 1 to 140 characters long
IsoPostOfficeIdentifier
string
Numbered box in a post office, assigned to a person or organisation, where letters are kept until called for
BankNationalIdScheme
InstitutionDepartment
InstitutionName
NationalIdDetailsFound_2
object
1 property 1 required
NationalIdDetails_3
object
13 properties 4 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

swift-national-ids-api-openapi.yml Raw ↑

Other APIs SWIFT publishes across the network.

Payment Pre-validation API
Transaction Screening API
SWIFT Account Numbers API
SWIFT BBANs API
SWIFT BICs API
SWIFT Country Codes API
SWIFT Currency Codes API
SWIFT LEIs 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 National IDs 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.