About this endpoint
What it does
Validates a BIC/SWIFT code submitted in the request body. The response returns a data field whose shape depends on the validation result: either a boolean false for an invalid code, or an object with parsed BIC details and a valid flag.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| bic | String | Yes | BIC/SWIFT code to validate. Must be 8 or 11 characters. |
Response
Returns a JSON object with a required data field. data is either a boolean false when the BIC is invalid, or an object containing valid, bank_code, branch_code, country_code, and location_code fields.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Boolean or Object | Yes | false when the BIC is invalid. When the BIC is valid, an object with the fields below. |
| data.valid | Boolean | No | true when the BIC is valid. Present only on the object form. |
| data.bank_code | String | No | Four-character institution code. |
| data.country_code | String | No | Two-letter ISO country code. |
| data.location_code | String | No | Two-character location code. |
| data.branch_code | String | No | Three-character branch code. Present on 11-character BICs. |



