List banks
curl --request GET \
--url https://api.talescria.com/v1/banks \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.talescria.com/v1/banks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.talescria.com/v1/banks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"country": "NG",
"banks": [
{
"bankId": "bk:NG:058",
"name": "Guaranty Trust Bank",
"code": "058",
"bic": "GTBINGLA"
}
]
}Recipients
List banks
The banks a payment can reach in a country, for a bank picker. Pass q to narrow by name or code.
bankId is opaque: send it back whole when adding a destination and never parse it. code is there so people recognise their bank.
An empty banks array is a real answer: in the UK, for example, payments route on sort codes and there is no bank to choose.
This response is cacheable for an hour.
Requires the recipients:read scope.
GET
/
v1
/
banks
List banks
curl --request GET \
--url https://api.talescria.com/v1/banks \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.talescria.com/v1/banks"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.talescria.com/v1/banks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"country": "NG",
"banks": [
{
"bankId": "bk:NG:058",
"name": "Guaranty Trust Bank",
"code": "058",
"bic": "GTBINGLA"
}
]
}