List accounts
curl --request GET \
--url https://api.talescria.com/v1/accounts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.talescria.com/v1/accounts"
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/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"merchantId": "mch_01M2P8FSY2C8MHHH93W4ADPGG0",
"environment": "test",
"accounts": [
{
"status": "ok",
"accountId": "acct_01M2P8GPSHV33BTXWH3NSJ4MC2",
"name": "Lagos collections",
"isDefault": true,
"currency": "NGN",
"posted": {
"minorUnits": "0",
"currency": "NGN"
},
"pending": {
"minorUnits": "0",
"currency": "NGN"
},
"available": {
"minorUnits": "0",
"currency": "NGN"
}
},
{
"status": "ok",
"accountId": "acct_01M2P8GP7RSDXN81CXRFM2HFV7",
"name": "Operations",
"isDefault": true,
"currency": "USD",
"deposit": {
"status": "ready",
"scheme": "faster_payments",
"fields": [
{
"key": "account_number",
"label": "Account number",
"value": "12345678"
},
{
"key": "sort_code",
"label": "Sort code",
"value": "04-00-04"
}
]
},
"posted": {
"minorUnits": "125000",
"currency": "USD"
},
"pending": {
"minorUnits": "0",
"currency": "USD"
},
"available": {
"minorUnits": "125000",
"currency": "USD"
}
}
],
"totals": [
{
"currency": "NGN",
"accounts": 1,
"posted": {
"minorUnits": "0",
"currency": "NGN"
},
"pending": {
"minorUnits": "0",
"currency": "NGN"
},
"available": {
"minorUnits": "0",
"currency": "NGN"
}
},
{
"currency": "USD",
"accounts": 1,
"posted": {
"minorUnits": "125000",
"currency": "USD"
},
"pending": {
"minorUnits": "0",
"currency": "USD"
},
"available": {
"minorUnits": "125000",
"currency": "USD"
}
}
],
"unresolved": 0
}Accounts
List accounts
Every account you hold in the key’s environment, with its balances. Rows are sorted by currency.
An account that can’t be shown accurately is still listed, with status: "unresolved" and a reason, and never carries an amount. Don’t add unresolved rows into a total.
Requires the accounts:read scope.
GET
/
v1
/
accounts
List accounts
curl --request GET \
--url https://api.talescria.com/v1/accounts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.talescria.com/v1/accounts"
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/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"merchantId": "mch_01M2P8FSY2C8MHHH93W4ADPGG0",
"environment": "test",
"accounts": [
{
"status": "ok",
"accountId": "acct_01M2P8GPSHV33BTXWH3NSJ4MC2",
"name": "Lagos collections",
"isDefault": true,
"currency": "NGN",
"posted": {
"minorUnits": "0",
"currency": "NGN"
},
"pending": {
"minorUnits": "0",
"currency": "NGN"
},
"available": {
"minorUnits": "0",
"currency": "NGN"
}
},
{
"status": "ok",
"accountId": "acct_01M2P8GP7RSDXN81CXRFM2HFV7",
"name": "Operations",
"isDefault": true,
"currency": "USD",
"deposit": {
"status": "ready",
"scheme": "faster_payments",
"fields": [
{
"key": "account_number",
"label": "Account number",
"value": "12345678"
},
{
"key": "sort_code",
"label": "Sort code",
"value": "04-00-04"
}
]
},
"posted": {
"minorUnits": "125000",
"currency": "USD"
},
"pending": {
"minorUnits": "0",
"currency": "USD"
},
"available": {
"minorUnits": "125000",
"currency": "USD"
}
}
],
"totals": [
{
"currency": "NGN",
"accounts": 1,
"posted": {
"minorUnits": "0",
"currency": "NGN"
},
"pending": {
"minorUnits": "0",
"currency": "NGN"
},
"available": {
"minorUnits": "0",
"currency": "NGN"
}
},
{
"currency": "USD",
"accounts": 1,
"posted": {
"minorUnits": "125000",
"currency": "USD"
},
"pending": {
"minorUnits": "0",
"currency": "USD"
},
"available": {
"minorUnits": "125000",
"currency": "USD"
}
}
],
"unresolved": 0
}Authorizations
Response
The account's wallets. An empty accounts array means no wallets yet.