const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fingopay.io/v1/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Accounts fetched",
"data": {
"items": [
{
"type": "collections",
"currency": "KES",
"available": 9876543,
"pending": 0,
"status": "active",
"default": true,
"accountNo": "ACC-123456",
"name": "Main Collections",
"hostType": "fingo",
"bankName": "Choice Bank",
"bankCode": "80100",
"branchCode": "001",
"swiftCode": "CHKEKENX"
}
]
}
}List all non-system accounts for the authenticated organization. Optionally filter by account type and/or scope. Use scope=default to return accounts where shortcodeId is absent, and scope=shortcode to return accounts where shortcodeId is present. You can combine type and scope in the same request.
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fingopay.io/v1/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Accounts fetched",
"data": {
"items": [
{
"type": "collections",
"currency": "KES",
"available": 9876543,
"pending": 0,
"status": "active",
"default": true,
"accountNo": "ACC-123456",
"name": "Main Collections",
"hostType": "fingo",
"bankName": "Choice Bank",
"bankCode": "80100",
"branchCode": "001",
"swiftCode": "CHKEKENX"
}
]
}
}Use your API key as a Bearer token. Example: Authorization: Bearer sk_live_...
Filter accounts by type. Can be combined with scope.
collections, payouts Filter accounts by shortcode scope. Use default for accounts where shortcodeId is absent, or shortcode for accounts where shortcodeId is present. Can be combined with type.
default, shortcode Accounts fetched successfully
"success"
"Accounts fetched"
Hide child attributes
Hide child attributes
collections, payouts "collections"
"KES"
9876543
0
"active"
true
"ACC-123456"
"Main Collections"
fingo, partner, null "fingo"
Only included for live payout accounts
"Choice Bank"
Only included for live payout accounts
"80100"
Only included for live payout accounts
"001"
Only included for live payout accounts
"CHKEKENX"
Was this page helpful?