SWIFT Iban National IDs API

The iban_national_ids API from SWIFT — 1 operation(s) for iban_national_ids.

Operations 1

GET /iban_national_ids/{iban_national_id}/bic Get the BIC for an IBAN national ID #

Documentation

Specifications

Schemas & Data

📊
JSONSchema
https://artifacts.apis.io/swift/json-schema/swift-payment-transaction149-schema.json
📊
JSONSchema
https://artifacts.apis.io/swift/json-schema/swift-read-changed-payment-transactions-response2-schema.json
📊
JSONSchema
https://artifacts.apis.io/swift/json-schema/swift-inter-act-message-emission-schema.json
📊
JSONSchema
https://artifacts.apis.io/swift/json-schema/swift-fin-message-emission-schema.json
📊
JSONSchema
https://artifacts.apis.io/swift/json-schema/swift-distribution-schema.json
📊
JSONSchema
https://artifacts.apis.io/swift/json-schema/swift-send-batch-messages-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/swift/json-schema/swift-file-act-message-download-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/swift/json-schema/swift-file-act-archive-download-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/swift/json-schema/swift-pmi-details-schema.json
📊
JSONSchema
https://artifacts.apis.io/swift/json-schema/swift-pmi-participant-details-schema.json
📊
JSONSchema
https://artifacts.apis.io/swift/json-schema/swift-lei-details-schema.json
📊
JSONSchema
https://artifacts.apis.io/swift/json-schema/swift-bic-iso-details-schema.json
📊
JSONSchema
https://artifacts.apis.io/swift/json-schema/swift-pmi-participants-schema.json
📊
JSONSchema
https://artifacts.apis.io/swift/json-schema/swift-currency-schema.json
📊
JSONSchema
https://artifacts.apis.io/swift/json-schema/swift-payment-status-request9-schema.json
📊
JSONSchema
https://artifacts.apis.io/swift/json-schema/swift-cash-account41-schema.json
📊
JSONSchema
https://artifacts.apis.io/swift/json-schema/swift-statement-schema.json
📊
JSONSchema
https://artifacts.apis.io/swift/json-schema/swift-statement-line-summary-schema.json
📊
JSONSchema
https://artifacts.apis.io/swift/json-schema/swift-transaction-summary1-schema.json
📊
JSONSchema
https://artifacts.apis.io/swift/json-schema/swift-links-schema.json

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/swift:swift-iban-national-ids-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

swift-iban-national-ids-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Swift Iban National IDs API
  version: 4.0.0
  contact:
    name: Standards & Developer Hub
    url: https://developer.swift.com
    email: developer-support@swift.com
  license:
    name: API Restricted License
    url: https://www.swift.com/file/56776/download?token=8w8DC4eF
  description: 'Operations tagged iban_national_ids across 2 of this provider''s published API definitions: swift-swiftref-api-v4-openapi.yml, swift-swiftref-api-v4-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.swift.com/swiftrefdata/v4
  description: Live environment
- url: https://sandbox.swift.com/swiftrefdata/v4
  description: Sandbox environment
- url: https://api-test.swift.com/swiftrefdata/v4
  description: Test environment
security:
- oauthBearerToken: []
tags:
- name: iban_national_ids
paths:
  /iban_national_ids/{iban_national_id}/bic:
    get:
      tags:
      - iban_national_ids
      summary: Get the BIC for an IBAN national ID
      description: For a given IBAN national ID, you can retrieve the BIC of the institution that services the IBAN.
      operationId: getBicFromIbanNationalId
      parameters:
      - in: path
        name: iban_national_id
        schema:
          $ref: '#/components/schemas/AlphaNumStringMax30'
        required: true
        description: IBAN national ID for which the corresponding BIC is requested
      - in: query
        name: country_code
        schema:
          $ref: '#/components/schemas/CountryCode'
        required: true
        description: The 2-character ISO 3166-1 country code of the country that issued the IBAN National ID
      responses:
        '200':
          description: Corresponding BIC found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IbanNationalIdBic'
            application/xml:
              schema:
                $ref: '#/components/schemas/IbanNationalIdBic'
        '400':
          description: Invalid input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
              example:
                errors:
                - code: REDA.API.ICCF
                  severity: Fatal
                  text: Invalid country code format
            application/xml:
              schema:
                $ref: '#/components/schemas/Errors'
              example: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <errors> <error> <code>REDA.API.ICCF</code> <severity>Fatal</severity> <text>Invalid country code format</text> </error> </errors>
        '401':
          $ref: '#/components/responses/Unallowed'
        '404':
          description: BIC not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
              example:
                errors:
                - code: REDA.API.NICT
                  severity: Fatal
                  text: Country not supporting IBANs
            application/xml:
              schema:
                $ref: '#/components/schemas/Errors'
              example: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <errors> <error> <code>REDA.API.NICT</code> <severity>Fatal</severity> <text>Country not supporting IBANs</text> </error> </errors>
        '405':
          $ref: '#/components/responses/InvalidHttpMethod'
        '406':
          $ref: '#/components/responses/NotAcceptable'
        default:
          $ref: '#/components/responses/UnexpectedError'
    servers:
    - url: https://api.swift.com/swiftrefdata/v4
      description: Live environment
    - url: https://sandbox.swift.com/swiftrefdata/v4
      description: Sandbox environment
    - url: https://api-test.swift.com/swiftrefdata/v4
      description: Test environment
components:
  schemas:
    Bic:
      type: string
      description: Bank Identifier Code - ISO 9362
      pattern: ^[A-Z]{6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3})?$
      example: SWHTBEBBXXX
    CountryCode:
      type: string
      pattern: ^[a-zA-Z]{2}$
      description: 2-character ISO 3166-1 country code
      example: DE
    IbanNationalIdBic:
      type: object
      required:
      - bic
      properties:
        bic:
          $ref: '#/components/schemas/Bic'
      xml:
        name: bic
      additionalProperties: false
      example:
        bic: DEUTDEFFXXX
    Error:
      description: Custom error schema to support detailed error message.
      required:
      - code
      - severity
      - text
      type: object
      properties:
        severity:
          description: Specifies the severity of the error.
          type: string
          enum:
          - Fatal
          - Transient
          - Logic
        code:
          description: Specifies the custom error code as defined by the service provider.
          type: string
          minLength: 3
          maxLength: 70
        text:
          $ref: '#/components/schemas/StringMax255'
        user_message:
          $ref: '#/components/schemas/StringMax255'
        more_info:
          description: Specifies an URL to find more information about the error.
          type: string
          format: uri
      xml:
        name: error
      additionalProperties: false
      example:
        code: REDA.API.CODE
        severity: Fatal
        text: Error description
        user_message: User-friendly error description
    AlphaNumStringMax30:
      description: Alphanumeric string definition, from 1 to 30 characters long
      type: string
      pattern: ^[0-9a-zA-Z]{1,30}$
    Errors:
      type: object
      required:
      - errors
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/Error'
          minItems: 1
      xml:
        name: errors
      additionalProperties: false
    StringMax255:
      description: Generic string definition, from 1 to 255 characters long
      type: string
      minLength: 1
      maxLength: 255
  responses:
    NotAcceptable:
      description: The server does not support the format asked by the consumer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Errors'
          example:
            errors:
            - code: REDA.API.NOAC
              severity: Fatal
              text: Requested output format is not supported
    UnexpectedError:
      description: Unexpected error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Errors'
        application/xml:
          schema:
            $ref: '#/components/schemas/Errors'
    InvalidHttpMethod:
      description: Request HTTP method is not accepted
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Errors'
          example:
            errors:
            - code: REDA.API.IREQ
              severity: Fatal
              text: Request performed with HTTP method other than GET
              user_message: Invalid request
    Unallowed:
      description: You do not have sufficient privileges to execute this service
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Errors'
          example:
            errors:
            - code: REDA.API.ILIC
              severity: Fatal
              text: You do not have sufficient privileges to execute this service
              user_message: You do not have sufficient privileges to execute this service
  securitySchemes:
    oauthBearerToken:
      type: http
      scheme: bearer
      bearerFormat: opaque OAuth 2.0
      description: "Use the access token obtained as a result of OAuth 2.0 flows. \n\nSWIFT supports two OAuth grant types depending on the API service.\n* JWT-Bearer grant type [RFC 7523](https://tools.ietf.org/html/rfc7523)\n* Password grant type\n\nThis API uses password grant type.\n\nPlease visit [SWIFT OAuth Token API](https://developer.swift.com/swift-oauth-token-api) for more information and examples.\n\nIn this declaration only the basic security element to transport the bearer token of an OAuth2 process is declared.\n"
x-refined-from:
- swift-swiftref-api-v4-openapi.yml
- swift-swiftref-api-v4-openapi.yml