> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.sqril.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.sqril.io/_mcp/server.

# List Banks

GET https://stg-api.sqril.io/listBanks

Lists beneficiary banks or financial institutions by country code.

**Authentication:**
- **REQUIRED**: Provide client_id and client_secret via:
  - Basic Auth: `Authorization: Basic base64(client_id:client_secret)`


**Query Parameters:**
- `country_code` (required): Country code (ID, PH, or VN)

**Response:**
- `banks`: Array of bank/financial institution objects with unified `code` field
- `country_code`: The country code requested
- `total`: Total number of banks returned

**Bank Code Standardization:**
All banks in the response use a unified `code` field. Provider-specific differences are normalized to the `code` field for consistency.

**Supported Countries:**
- ID (Indonesia)
- PH (Philippines)
- VN (Vietnam)

**Note:** listBanks applies only to ID, PH, and VN. LATAM, Thailand, Cambodia, Africa, and other corridors do not use this endpoint — routing is resolved from the QR or country_code at decode time.

Reference: https://docs.sqril.io/sqril-saa-s-api/bank-endpoints/list-banks

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /listBanks:
    get:
      operationId: list-banks
      summary: List Banks
      description: >-
        Lists beneficiary banks or financial institutions by country code.


        **Authentication:**

        - **REQUIRED**: Provide client_id and client_secret via:
          - Basic Auth: `Authorization: Basic base64(client_id:client_secret)`


        **Query Parameters:**

        - `country_code` (required): Country code (ID, PH, or VN)


        **Response:**

        - `banks`: Array of bank/financial institution objects with unified
        `code` field

        - `country_code`: The country code requested

        - `total`: Total number of banks returned


        **Bank Code Standardization:**

        All banks in the response use a unified `code` field. Provider-specific
        differences are normalized to the `code` field for consistency.


        **Supported Countries:**

        - ID (Indonesia)

        - PH (Philippines)

        - VN (Vietnam)


        **Note:** listBanks applies only to ID, PH, and VN. LATAM, Thailand,
        Cambodia, Africa, and other corridors do not use this endpoint — routing
        is resolved from the QR or country_code at decode time.
      tags:
        - subpackage_bankEndpoints
      parameters:
        - name: country_code
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/ListBanksGetParametersCountryCode'
        - name: Authorization
          in: header
          description: 'Basic Auth: base64(client_id:client_secret)'
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Bank Endpoints_List Banks_Response_200'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                description: Any type
servers:
  - url: https://stg-api.sqril.io
    description: https://stg-api.sqril.io
components:
  schemas:
    ListBanksGetParametersCountryCode:
      type: string
      enum:
        - ID
        - PH
        - VN
      title: ListBanksGetParametersCountryCode
    Bank Endpoints_List Banks_Response_200:
      type: object
      properties: {}
      description: Empty response body
      title: Bank Endpoints_List Banks_Response_200
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
      description: 'Basic Auth: base64(client_id:client_secret)'

```

## Examples



**Response**

```json
{}
```

**SDK Code**

```python
import requests

url = "https://stg-api.sqril.io/listBanks"

querystring = {"country_code":"ID"}

response = requests.get(url, params=querystring, auth=("<username>", "<password>"))

print(response.json())
```

```javascript
const url = 'https://stg-api.sqril.io/listBanks?country_code=ID';
const credentials = btoa("<username>:<password>");

const options = {method: 'GET', headers: {Authorization: `Basic ${credentials}`}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://stg-api.sqril.io/listBanks?country_code=ID"

	req, _ := http.NewRequest("GET", url, nil)

	req.SetBasicAuth("<username>", "<password>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://stg-api.sqril.io/listBanks?country_code=ID")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request.basic_auth("<username>", "<password>")

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://stg-api.sqril.io/listBanks?country_code=ID")
  .basicAuth("<username>", "<password>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://stg-api.sqril.io/listBanks?country_code=ID', [
  'headers' => [
  ],
    'auth' => ['<username>', '<password>'],
]);

echo $response->getBody();
```

```csharp
using RestSharp;
using RestSharp.Authenticators;

var client = new RestClient("https://stg-api.sqril.io/listBanks?country_code=ID");
client.Authenticator = new HttpBasicAuthenticator("<username>", "<password>");
var request = new RestRequest(Method.GET);

IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let credentials = Data("<username>:<password>".utf8).base64EncodedString()

let headers = ["Authorization": "Basic \(credentials)"]

let request = NSMutableURLRequest(url: NSURL(string: "https://stg-api.sqril.io/listBanks?country_code=ID")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```