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

# Find Banks

> This endpoint returns a list of Nigerian Banks

`GET {{baseurl}}/transactions/banks`

<Tabs>
  <Tab title="Staging">
    ```
       https://gw.stg.girostack.com/v1
    ```
  </Tab>

  <Tab title="Production">
    ```
       https://gw.prod.girostack.com/v1
    ```
  </Tab>
</Tabs>

<Card title="Headers">
  <ParamField body="x-giro-key" type="string" required>
    Pass your account's secret key as the value.
  </ParamField>
</Card>

<RequestExample>
  ```bash cURL theme={null}
  curl --location '{{API_BASE_URL}}/transactions/banks' \
  --header 'x-giro-key: {{SECRET_KEY}}' \
  --header 'Content-Type: application/json' \
  ```

  ```javascript Node.JS theme={null}
  const fetch = require("node-fetch");

  const url = "{{API_BASE_URL}}/transactions/banks";
  const headers = {
    "x-giro-key": "{{SECRET_KEY}}",
    "Content-Type": "application/json",
  };

  fetch(url, {
    method: "GET",
    headers: headers,
  })
    .then((response) => response.json())
    .then((data) => console.log(data))
    .catch((error) => console.error("Error:", error));
  ```

  ```php PHP theme={null}
  <?php
  $curl = curl_init();

  curl_setopt_array($curl, array(
    CURLOPT_URL => '{{API_BASE_URL}}/transactions/banks',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => array(
      'x-giro-key: {{SECRET_KEY}}',
      'Content-Type: application/json'
    )
  ));

  $response = curl_exec($curl);
  $httpcode = curl_getinfo($curl, CURLINFO_HTTP_CODE);

  if (curl_errno($curl)) {
    echo 'Error: ' . curl_error($curl);
  } else {
    echo "Response Code: $httpcode\n";
    echo $response;
  }

  curl_close($curl);
  ?>
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "meta": {
      "statusCode": 200,
      "success": true,
      "message": "successful"
    },
    "data": [
      {
        "id": 1,
        "publicId": "bnk-sandbox-bb37a39b-b682-4588-a9a3-81596b9a2fdd",
        "createdAt": "2024-05-20T10:44:16.046Z",
        "updatedAt": "2024-05-20T10:44:16.046Z",
        "deletedAt": null,
        "bankName": "Source MFB",
        "bankCode": "090641",
        "nibssBankCode": "090641",
        "country": "nigeria",
        "slug": "source-mfb",
        "type": "nuban",
        "currency": "NGN",
        "active": true,
        "processor": "source",
        "meta": {
          "bankCode": "090641",
          "name": "Source MFB",
          "nibssBankCode": "090641"
        }
      },
      {
        "id": 2,
        "publicId": "bnk-sandbox-f189d5d3-230d-4784-9b74-49fd05f560bc",
        "createdAt": "2024-07-16T23:00:01.022Z",
        "updatedAt": "2024-07-16T23:00:01.022Z",
        "deletedAt": null,
        "bankName": "CENTRAL BANK OF NIGERIA",
        "bankCode": "000",
        "nibssBankCode": "000028",
        "country": "nigeria",
        "slug": "central-bank-of-nigeria",
        "type": "nuban",
        "currency": "NGN",
        "active": true,
        "processor": "source",
        "meta": {
          "bankCode": "000",
          "name": "CENTRAL BANK OF NIGERIA",
          "nibssBankCode": "000028"
        }
      }
    ]
  }
  ```
</ResponseExample>
