接入文件
SWIFT/BIC 查詢
驗證 SWIFT/BIC 格式並查詢銀行、分行、國家、城市與地址資訊。
Endpoint
POST /v1/swift-bic-query
Authentication
Use a ToolKK OpenAPI AppKey. APILayer credentials stay on the ToolKK provider gateway.
Billing
A successful call costs 20 coins.
Errors
Invalid input, quota exhaustion, authentication faults, and temporary provider failures return normalized error codes and messages.
接入示例程式碼
提供 Shell、Python、Go、Java、PHP 等常見接入示例,便於直接接到現有專案裡。
請求示例
{
"swift_code": "COBADEFF574"
}響應示例
{
"code": "SUCCESS",
"message": "success",
"data": {
"valid": true,
"swift": "COBADEFF574",
"bank_name": "COMMERZBANK AG",
"country": "Germany",
"city": "ANDERNACH"
}
}請求欄位
以下欄位根據示例 JSON 自動提取,僅作接入參考。
| 欄位路徑 | 型別 | 示例值 |
|---|---|---|
| swift_code | string | COBADEFF574 |
響應欄位
以下欄位根據示例 JSON 自動提取,僅作接入參考。
| 欄位路徑 | 型別 | 示例值 |
|---|---|---|
| code | string | SUCCESS |
| message | string | success |
| data | object | {...} |
| data.valid | boolean | true |
| data.swift | string | COBADEFF574 |
| data.bank_name | string | COMMERZBANK AG |
| data.country | string | Germany |
| data.city | string |