The connection object is created whenever a user links their financial institution with your app. Connections act as conduits that retrieve account holders' data (i.e. accounts and transactions) from the institution and store it against the User object. Connections can be deleted and recreated so it is recommended that apps access accounts via the User object rather than the connection.
After a connection is successfully established, you can fetch data created after this point by refreshing the connection. This process ensures on-demand data synchronization between your system and Institution itself. Basiq recommends using the Smart Cache to ensure you always have access to the latest data.
Attributes | |
---|---|
| Value is "connection". |
| A string that uniquely identifies the user connection. |
| User's institution login ID. This value cannot be read. required |
| User's institution password. This value cannot be read. required |
| User's institution security code. This value cannot be read. conditional |
| User's institution secondary login id. This value cannot be read. conditional |
| Indicates the connection status. Possible values include: |
| |
| UTC Date and Time the connection was created, in RFC 3339 format. |
| UTC Date and Time the connection was last used, in RFC 3339 format. |
| [new] Indicates whether MFA (multi factor authentication) is enabled for this connection. Where the value is |
| Available profile data for the logged in user or data sharer. Where no data is available the attribute is "null". This attribute contains the following properties and will return "null" for data that is unavailable: |
| |
The institution the connection relates to. | |
User's accounts in this institution. | |
links | A links object containing the following members: |
| |
To minimise the exposure of credential details, loginId, password and securityCode are omitted from all server responses.
HTTP/1.1 200 OK
Content-Type: application/json
{
"type": "connection",
"id": "c7231718",
"status": "active",
"createdDate": "2020-12-02T02:20:49Z",
"lastUsed": "2020-12-02T02:20:59Z",
"mfaEnabled": false,
"profile": {
"fullName": "Max Wentworth-Smith",
"firstName": "Max",
"lastName": "Wentworth-Smith",
"middleName": "",
"phoneNumbers": [
"040534555 ### 991"
],
"emailAddresses": [
"[email protected]"
],
"physicalAddresses": [
{
"addressLine1": "91 Fisher Road",
"addressLine2": null,
"addressLine3": null,
"postcode": "2099",
"city": "Dee Why",
"state": "NSW",
"country": "Australia",
"countryCode": "AU",
"formattedAddress": "13/91 Fisher Rd, Dee Why NSW 2099, Australia"
}
]
},
"institution": {
"type": "institution",
"id": "AU00000",
"links": {
"self": "https://au-api.basiq.io/institutions/AU00000"
}
},
"accounts": {
"type": "list",
"data": [
{
"type": "account",
"id": "29a1e18b",
"accountNo": "2",
"name": "Transaction 14000",
"currency": "AUD",
"class": {
"type": "transaction",
"product": "Hooli Transaction"
},
"balance": "49084.34",
"availableFunds": "49084.34",
"lastUpdated": "2020-12-02T02:21:01Z",
"status": "available",
"links": {
"self": "https://au-api.basiq.io/users/9ac25c19/accounts/29a1e18b",
"transactions": "https://au-api.basiq.io/users/9ac25c19/transactions?filter=account.id.eq('29a1e18b')"
}
}
]
},
"links": {
"self": "https://au-api.basiq.io/users/9ac25c19/connections/c7231718",
"user": "https://au-api.basiq.io/users/9ac25c19",
"accounts": "https://au-api.basiq.io/users/9ac25c19/accounts?filter=institution.id.eq('AU00000')",
"transactions": "https://au-api.basiq.io/users/9ac25c19/transactions?filter=institution.id.eq('AU00000')"
}
}