> For the complete documentation index, see [llms.txt](https://docs.payengine.co/payengine-api-v2.5/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payengine.co/payengine-api-v2.5/onboarding/get-bank-name.md).

# Get bank auto fill

## Get bank name from routing number

<mark style="color:green;">`POST`</mark> `https://<Platform-host>/common/get-bank-name`

This endpoint allows you to get bank information from a routing number. Returns bank name and registered phone number.\
You should use this endpoint to validate the routing number entered when filling **Banking Information** section.

#### Request Body

| Name            | Type   | Description        |
| --------------- | ------ | ------------------ |
| routing\_number | string | The routing number |

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

```
{
  "routing_number": "1020*****",
  "bank": "WELLS FARGO BANK NA",
  "phone": "80074*****"
}
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Raw Body" %}

```javascript
{
  "routing_number": "1020*****"
}
```

{% endtab %}

{% tab title="Node.js" %}

```javascript
var axios = require('axios');
var data = JSON.stringify({"routing_number":"1020*****"});

var config = {
  method: 'post',
  url: 'https://{{hostname}}/api/merchant/get-bank-name',
  headers: { 
    'accept': 'application/json', 
    'Authorization': 'Basic {{YOUR_API_SECRET}}', 
    'Content-Type': 'application/json'
  },
  data : data
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});

```

{% endtab %}
{% endtabs %}
