Fetch All Connections
You can retrieve all linked bank accounts information for a user with the fetchAllConnections query. The id parameter is the unique identifier of the user on the client's end.

Query

1
query {
2
fetchAllConnections(id:"dev001") {
3
id
4
username
5
slug
6
defaultAccount
7
accountNumber
8
balance
9
}
10
}
Copied!

Response :

1
{
2
"data": {
3
"currentConnections": [
4
{
5
"id": "dev001",
6
"username": "1234567890",
7
"slug": "gtbank",
8
"defaultAccount": false,
9
"accountNumber": "0123456789",
10
"balance": "143.03"
11
}
12
]
13
}
14
}
Copied!

Request Parameters

Field Name
Scalar
Mandatory Field
Description
id
ID
Yes
The unique identifier of the user in the client's service

Response

Field Name
Scalar
Mandatory Field
Description
id
ID
Yes
This would be the unique id of the user according to Transfers
username
String
Yes
The bank's profile username
slug
BankType
Yes
The slug id for the bank name
defaultAccount
Boolean
Yes
This identifies if this is the default debit account
accountNumber
String
Yes
This is the account number returned on the bank profile
balance
String
Yes
This is the account balance returned on the bank account from the bank profile
Last modified 2mo ago