Skip to main content

Connection

The system entity representing the link between a user and a dataholder, this entity will optionally contain what metrics this connection was created for.

idstring<UUID>

The id for this connection

appstring

The app this connection belongs to

userstring<UUID>required

The id of the user associated with this connection

dataholderstring<UUID>nullable

The dataholder id which this connection pulls data from

durationintegernullable

The length of time in days the requested consent will last.

Default value: 365
scopesScope[]nullable

The scopes that have been applied to this connection from the dataholder, will be null if the connection is not in an active, expired or disconnected state

Possible values: [openid, common:customer.basic:read, common:customer.detail:read, bank:accounts.basic:read, bank:accounts.detail:read, bank:transactions:read, bank:regular_payments:read, bank:payees:read]

Default value: ["openid","common:customer.basic:read","common:customer.detail:read","bank:accounts.basic:read","bank:accounts.detail:read","bank:transactions:read"]
metricsstring[]nullabledeprecated

The metrics associated with this connection, this will be null if it is all metrics

statusConnectionStateEnumdeprecated

The current state of the connection.

Enum ValueDescription
ABANDONEDThe connection has not been activated.
ACTIVEThe connection is authorised and can be used to access data.
CANCELLEDThe connection has been cancelled, before a dataholder has been selected.
DECLINEDThe customer declined the authorisation request, after a dataholder has been selected.
DISCONNECTEDThe customer has revoked an active connection.
EXPIREDThe connection authorisation has expired.
INITIATEDThe connection has been created but authorisation has not yet been completed.
LOGOUTThe authorisation journey ended because the customer logged out.

Possible values: [INITIATED, ABANDONED, CANCELLED, DECLINED, DISCONNECTED, ACTIVE, EXPIRED, LOGOUT]

connectionState object

The connection state represents a the current status of the connection including timestamps of things that have occurred

statusConnectionStateEnum

The current state of the connection.

Enum ValueDescription
ABANDONEDThe connection has not been activated.
ACTIVEThe connection is authorised and can be used to access data.
CANCELLEDThe connection has been cancelled, before a dataholder has been selected.
DECLINEDThe customer declined the authorisation request, after a dataholder has been selected.
DISCONNECTEDThe customer has revoked an active connection.
EXPIREDThe connection authorisation has expired.
INITIATEDThe connection has been created but authorisation has not yet been completed.
LOGOUTThe authorisation journey ended because the customer logged out.

Possible values: [INITIATED, ABANDONED, CANCELLED, DECLINED, DISCONNECTED, ACTIVE, EXPIRED, LOGOUT]

connectedAtstring<date-time>
disconnectedAtstring<date-time>
BANK_ACCOUNT object
statusExtractionStateEnum

Possible values: [SUCCESS, FAILURE]

referenceIdstring
lastSuccessstring<date-time>
lastUpdatedstring<date-time>
BANK_BALANCE object
statusExtractionStateEnum

Possible values: [SUCCESS, FAILURE]

referenceIdstring
lastSuccessstring<date-time>
lastUpdatedstring<date-time>
BANK_TRANSACTION object
statusExtractionStateEnum

Possible values: [SUCCESS, FAILURE]

referenceIdstring
lastSuccessstring<date-time>
lastUpdatedstring<date-time>
USER_INFO object
statusExtractionStateEnum

Possible values: [SUCCESS, FAILURE]

referenceIdstring
lastSuccessstring<date-time>
lastUpdatedstring<date-time>
Connection
{
"id": "string",
"app": "string",
"user": "string",
"dataholder": "string",
"duration": 365,
"scopes": [
"openid"
],
"connectionState": {
"status": "INITIATED",
"connectedAt": "2024-07-29T15:51:28.071Z",
"disconnectedAt": "2024-07-29T15:51:28.071Z",
"BANK_ACCOUNT": {
"status": "SUCCESS",
"referenceId": "string",
"lastSuccess": "2024-07-29T15:51:28.071Z",
"lastUpdated": "2024-07-29T15:51:28.071Z"
},
"BANK_BALANCE": {
"status": "SUCCESS",
"referenceId": "string",
"lastSuccess": "2024-07-29T15:51:28.071Z",
"lastUpdated": "2024-07-29T15:51:28.071Z"
},
"BANK_TRANSACTION": {
"status": "SUCCESS",
"referenceId": "string",
"lastSuccess": "2024-07-29T15:51:28.071Z",
"lastUpdated": "2024-07-29T15:51:28.071Z"
},
"USER_INFO": {
"status": "SUCCESS",
"referenceId": "string",
"lastSuccess": "2024-07-29T15:51:28.071Z",
"lastUpdated": "2024-07-29T15:51:28.071Z"
}
}
}