Balance

post
AccountBalance

https://api.dapi.co/v1/data/AccountBalance
Request
Response
Request
Headers
Authorization
required
string
Bearer <token>
Body Parameters
addresses
optional
array
Specify which webhook URL(s) defined in app settings to send data to. If empty, an update will be sent to all defined webhook urls
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
accountID
required
string
The ID of the account to retrieve the balance for. This needs to be retrieved from a call to the Accounts endpoint
Response
200: OK
// Synchronous and Webhook Response
{
jobID: '2a8472ed-b913-5fd9-8dfe-7833ac14379d',
success: true,
msg: 'Job Finished',
result: {
balance: 1072.05,
currency: 'AED',
accountNumber: '106666666001'
}
}
202: Accepted
// Asynchronous response
{
jobID: '2a8472ed-b913-5fd9-8dfe-7833ac14379d',
msg: 'Job Initialized'
success: null
}
422: Unprocessable Entity
{
"msg": "Parameters validation error!",
"success": false,
"field": "appSecret",
"err": "The 'appSecret' field is required!"
}