Account

post
UserAccounts

https://api.dapi.co/v1/data/UserAccounts
Request
Response
Headers
Authorization
required
string
Bearer <accessToken>
Body Parameters
userSecret
required
string
User Secret from connect
addresses
optional
array
Webhook URL(s) to send data to. If empty an update will be sent to all webhook urls defined in app settings
sync
optional
boolean
true or false, if set the connection is maintained till the result is returned
appSecret
required
string
App Secret from the dashboard
200: OK
// Asynchronous response
{
"jobID": "83515136-9146-523a-9936-3229d51fd49d",
"msg": "Job Intitalized",
"success": null
}
// Synchronous and Webhook Response
{
"jobID": "83515136-9146-523a-9936-3229d51fd49d",
"msg": "Job Finished",
"success": true,
"result": {
"UserAccounts": {
"msg": "User accounts retrieved successfully",
"accounts": {
"current": [
{
"iban": "AE04345678987654300123",
"accountNumber": "987654300123",
"accountType": "CURRENT ACCOUNT",
"currency": "AED"
}
],
"savings": [
{
"iban": "AE800456787655673002",
"accountNumber": "787655673002",
"accountType": "GOLD INVESTMENT ACCOUNT",
"currency": "XAU"
},
{
"iban": "AE222222222222222222222",
"accountNumber": "222222222222222",
"accountType": "SMART S@VER ACCOUNT",
"currency": "GBP"
}
]
}
}
}
}
422: Unprocessable Entity
{
"msg": "Parameters validation error!",
"success": false,
"field": "appSecret",
"err": "The 'appSecret' field is required!"
}