# Bank information

To validate BSB, BIC (aka SWIFT code) or IBAN use the bankInfo query.

{% hint style="info" %}
The `bankInfo` query accepts only one of `bsb`, `bic`, or `iban` arguments. Otherwise, it will return an error.
{% endhint %}

The below sample queries will return `null` if the BSB, BIC, IBAN is not found.

Validate BSB

{% tabs %}
{% tab title="JavaScript" %}

```javascript
const bodyJSON = {
  variables: {
    input: {
      bsb: "012622",
    },
  }, 
  query: `
query ($input: BankInfoQueryInput!) {
  bankInfo(input: $input) {
    name 
    address {
      building street suburb state country postcode
    }
  }
}`,
};
```

{% endtab %}

{% tab title="GraphQL Query" %}

```graphql
query($input: BankInfoQueryInput!){
  bankInfo(input: $input) {
    name
    address {
      building
      street
      suburb
      state
      country
      postcode
    }
  }
}
```

{% endtab %}

{% tab title="Variables" %}

```javascript
 {
  "input": {
    "bsb": "012622"
  }
}
```

{% endtab %}

{% tab title="Response" %}

```javascript
{
  "data": {
    "bankInfo": {
      "name": "ANZ",
      "address": {
        "building": null,
        "street": "Shop 1  Westfield Shopping Ctr",
        "suburb": "Figtree",
        "state": "NSW",
        "country": "AU",
        "postcode": "2525"
      }
    }
  }
}
```

{% endtab %}
{% endtabs %}

Validate BIC

{% tabs %}
{% tab title="JavaScript" %}

```javascript
const bodyJSON = {
  variables: {
    input: {
      bic: "BARCGB22",
    },
  }, 
  query: `
query ($input: BankInfoQueryInput!) {
  bankInfo(input: $input) {
    name 
    address {
      building street suburb state country postcode
    }
  }
}`,
};
```

{% endtab %}

{% tab title="GraphQL Query" %}

```graphql
query($input: BankInfoQueryInput!){
  bankInfo(input: $input) {
    name
    address {
      building
      street
      suburb
      state
      country
      postcode
    }
  }
}
```

{% endtab %}

{% tab title="Variables" %}

```javascript
 {
  "input": {
    "bic": "BARCGB22"
  }
}
```

{% endtab %}

{% tab title="Response" %}

```javascript
{
  "data": {
    "bankInfo": {
      "name": "BARCLAYS BANK PLC",
      "address": {
        "building": null,
        "street": "1 CHURCHILL PLACE, CANARY WHARF London",
        "suburb": "London",
        "state": null,
        "country": "GB",
        "postcode": "E14 5HP"
      }
    }
  }
}
```

{% endtab %}
{% endtabs %}

Validate IBAN

{% tabs %}
{% tab title="JavaScript" %}

```javascript
const bodyJSON = {
  variables: {
    input: {
      iban: "DE59500105178646768962",
    },
  }, 
  query: `
query ($input: BankInfoQueryInput!) {
  bankInfo(input: $input) {
    name 
    address {
      building street suburb state country postcode
    }
  }
}`,
};
```

{% endtab %}

{% tab title="GraphQL Query" %}

```graphql
query($input: BankInfoQueryInput!){
  bankInfo(input: $input) {
    name
    address {
      building
      street
      suburb
      state
      country
      postcode
    }
  }
}
```

{% endtab %}

{% tab title="Variables" %}

```javascript
 {
  "input": {
    "iban": "DE59500105178646768962"
  }
}
```

{% endtab %}

{% tab title="Response" %}

```javascript
{
  "data": {
    "bankInfo": {
      "name": "ING-DIBA AG (RETAIL BANKING)",
      "address": {
        "building": null,
        "street": "THEODOR-HEUSS-ALLEE 2 Frankfurt Am Main",
        "suburb": "Frankfurt Am Main",
        "state": null,
        "country": "DE",
        "postcode": "60486"
      }
    }
  }
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.flash-payments.com/compliance/bank-information.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
