> ## Documentation Index
> Fetch the complete documentation index at: https://readme.amana-dev.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Look up bank details by IBAN

> Get bank details, such as bank name and SWIFT code, for an IBAN.

## Query parameters

<ParamField query="iban" type="string" required>
  Minimum length: `1`
</ParamField>

## Response

`200` Success.

<ResponseField name="iban" type="string" />

<ResponseField name="bankName" type="string" />

<ResponseField name="bankCode" type="string" />

<ResponseField name="beneficiaryName" type="string" />

<ResponseField name="address" type="string" />

<ResponseField name="bankAddress" type="string" />

<ResponseField name="bankCountry" type="string" />

<ResponseField name="swiftCode" type="string" />

<ResponseField name="currency" type="string" />

## Possible Errors

| Error | Possible cause | What to do |
| - | - | - |
| 400 | Invalid or missing field | Check the request against the schema. |
| 401 | Token missing or expired | Log in again or use the refresh token. |
| 403 | IP not whitelisted, or account restricted | Confirm your IP is whitelisted; otherwise contact Amana. |
| 404 | The requested item doesn't exist | Check the ID or path parameter. |
| 429 / 5xx | Rate limit, or temporary issue on our side | Retry with backoff; contact support if it persists. |

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://gateway.amana.io/kyc/bank-account-details?iban=<iban>'
  ```

  ```python Python theme={null}
  import requests

  url = "https://gateway.amana.io/kyc/bank-account-details?iban=<iban>"
  headers = {}

  response = requests.request("GET", url, headers=headers)
  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://gateway.amana.io/kyc/bank-account-details?iban=<iban>', {
    method: 'GET',
    headers: {},
  });
  console.log(await response.json());
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "iban": "<string>",
    "bankName": "<string>",
    "bankCode": "<string>",
    "beneficiaryName": "<string>",
    "address": "<string>",
    "bankAddress": "<string>",
    "bankCountry": "<string>",
    "swiftCode": "<string>",
    "currency": "<string>"
  }
  ```

  ```json 400 theme={null}
  {
    "error": "<string>",
    "message": "<string>",
    "details": {}
  }
  ```

  ```json 401 theme={null}
  {
    "error": "<string>",
    "message": "<string>",
    "details": {}
  }
  ```

  ```json 403 theme={null}
  {
    "error": "<string>",
    "message": "<string>"
  }
  ```

  ```json 404 theme={null}
  {
    "error": "<string>",
    "message": "<string>",
    "details": {}
  }
  ```

  ```json 429 theme={null}
  {
    "error": "<string>",
    "message": "<string>"
  }
  ```

  ```json 500 theme={null}
  {
    "error": "<string>",
    "message": "<string>",
    "details": {}
  }
  ```
</ResponseExample>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.