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 | ENUM | Yes | Either false when the BIC is invalid, or an object with the following fields when valid: valid (Boolean), bank_code (String), branch_code (String), country_code (String), location_code (String). |