Balance

post
AccountBalance

https://api.dapi.co/v1/data/balance/get
Request
Response
Request
Headers
Authorization
required
string
Bearer <token>
Body Parameters
userSecret
required
string
User Secret from connect
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. Default is false
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": "83515136-9146-523a-9936-3229d51fd49d",
"success": true,
"status": "done",
"balance": {
"amount": 1072.05,
"currency": "AED",
"accountNumber": "106666666001"
}
}
202: Accepted
// Asynchronous response
{
"jobID": "83515136-9146-523a-9936-3229d51fd49d",
"status": "initialized"
}
422: Unprocessable Entity
{
"success": false,
"status": "error",
"message": "The 'appSecret' field is required!"
}