> For the complete documentation index, see [llms.txt](https://moneymie.gitbook.io/toga-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://moneymie.gitbook.io/toga-api/api-reference/payouts/get-all-banks.md).

# Get all banks

Get all the supported banks when you are in the process of initiating a payout

## Make a get request to all available banks&#x20;

<mark style="color:blue;">`GET`</mark> `https://sandbox.moneymie.com/api/v1/payout/banks`

Get a list of all the available banks when you want to create a transaction. You can narrow down to the specific banks available in the destination country by adding a query parameter in the body.

#### Query Parameters

| Name                                       | Type   | Description                                                   |
| ------------------------------------------ | ------ | ------------------------------------------------------------- |
| country <mark style="color:red;">\*</mark> | String | The country you intend to get banks from                      |
| currency<mark style="color:red;">\*</mark> | String | The currency the banks wll recieve in the country you entered |

{% tabs %}
{% tab title="401: Unauthorized Unauthorized access - Invalid token" %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="400: Bad Request Client error" %}

```json
{
  "code": "XXXX",
  "message": "Invalid currency"
}
```

{% endtab %}

{% tab title="201: Created Banks successfully fetched" %}

```json
// Fetch all the banks in Rwanda (country=RW and currency=RWF)
[
    {
        "bankName": "Ecobank RW",
        "bankCode": "508"
    }
]
```

{% endtab %}
{% endtabs %}
