# Get bank codes

## Retrieve Bank List by Country

> This API allows you to retrieve the list of banks available in each country.

```json
{"openapi":"3.0.0","info":{"title":"Cashout Bank Codes API","version":"v3"},"servers":[{"url":"https://api-stg.onekeypayments.com/v3","description":"Staging server"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Authentication using a Bearer Token (Read-Only API Key). The token should be prefixed with \"Bearer \"."}},"schemas":{"Bank":{"type":"object","properties":{"code":{"type":"integer","format":"int32","description":"Bank code. It is the value you must send in the field bank_code of the cashouts and deposits requests."},"name":{"type":"string","description":"Name of the bank."}},"required":["code","name"]},"ErrorInvalidCredentials":{"type":"object","properties":{"code":{"type":"integer","description":"Error code."},"description":{"type":"string","description":"A human-readable description of the error."},"type":{"type":"string","description":"A machine-readable error type."}},"required":["code","description","type"]}}},"paths":{"/banks":{"get":{"summary":"Retrieve Bank List by Country","description":"This API allows you to retrieve the list of banks available in each country.","operationId":"getBankListByCountry","parameters":[{"name":"country","in":"query","required":true,"description":"Country ISO code (2 letters).","schema":{"type":"string","minLength":2,"maxLength":2}}],"responses":{"200":{"description":"Bank list successfully retrieved.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Bank"}}}}},"401":{"description":"Invalid credentials error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorInvalidCredentials"}}}}}}}}}
```
