---
title: Validate SWIFT/BIC API
slug: validate-swift-bic-code
url: https://apyhub.com/apyhub/service/validate-swift-bic-code
provider: ApyHub
categories: [Verification Kit]
tags: [swift-code, bic-validation, bank-validation, finance, payment-validation]
auth: api_key
version: 1.0.0
service_type: sync
endpoints: 1
atoms: 5
mcp: true
alias: finance-validator-bic
---

# Validate SWIFT/BIC API

SWIFT code validation API that checks an 8 or 11 character BIC and splits it into bank, country, location and branch codes for payment forms.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/apyhub/validate-swift-bic-code` | What it does Validates a BIC/SWIFT code submitted in the request body. The response returns a data… | 5 |

## Endpoint reference

### Validate a BIC / SWIFT code

`POST https://api.eu.apyhub.com/apyhub/validate-swift-bic-code` · 5 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `bic` | body | string | yes | BIC/SWIFT code to validate (8 or 11 characters). Example: `ABNANL2A`. |

#### Quickstart

Validate a BIC/SWIFT code by sending it in a JSON body.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/validate-swift-bic-code" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"bic":"ABNANL2A"}'
```

#### What you'll get back

Returns a JSON object with a `data` field. `data` can be either a boolean `false` when the BIC is invalid, or an object with validation details: `valid`, `bank_code`, `branch_code`, `country_code`, and `location_code`.

```json
{
  "data": {
    "valid": true,
    "bank_code": "ABNA",
    "branch_code": "XXX",
    "country_code": "NL",
    "location_code": "2A"
  }
}
```

## About

## What it does
The SWIFT code validation API checks whether a BIC/SWIFT code is structurally valid and splits it into its parts. Send an 8 or 11 character code as `bic` in the request body. A valid code returns an object with `valid`, `bank_code`, `country_code`, `location_code` and `branch_code`. An invalid code returns `data: false`.

Use the SWIFT code validation API as a BIC validator in payment and payout forms, supplier onboarding, and payroll setup for international employees. Catching a mistyped SWIFT code at input is cheaper than a returned wire transfer, and the parsed `country_code` lets you confirm the bank country matches the rest of the record.

The parsed fields are useful beyond a yes or no check. Store `bank_code` and `country_code` as separate columns, normalize 8 character codes against their 11 character branch form, or flag records where the BIC country differs from the IBAN country in bulk cleanup of existing bank data.

This SWIFT code validator checks format and structure. It does not look up the bank name or address in the SWIFT directory. A valid result confirms a well-formed code, and your payment provider confirms that the account exists.

International payment details rarely arrive alone. Validate the account number with the [IBAN Validation API](https://apyhub.com/apyhub/service/validate-iban), US bank codes with the [Routing Number Validation API](https://apyhub.com/dosvak/service/validate-routing-number), and the business itself with the [VAT Lookup API](https://apyhub.com/apyhub/service/lookup-vat-company).

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/apyhub/service/validate-swift-bic-code
