Transactions

post
Transactions

https://api.dapi.co/v1/data/Transactions
Request
Response
Request
Headers
Authorization
required
string
Bearer <token>
Body Parameters
accountID
required
string
The ID of the account to retrieve transactions for. This needs to be retrieved from a call to the Accounts endpoint
toDate
required
string
Date to end transactions on ie "YYYY-MM-DD"
fromDate
required
string
Date to start transactions from ie "YYYY-MM-DD"
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
appSecret
required
string
App Secret from the dashboard
Response
200: OK
{
"jobID": "a4b1570a-a06a-4890-ab75-adb2787a0289",
"success": true,
"msg": "Job Finished",
"result": {
"success": true,
"msg": "Transactions retrieved successfully",
"transactions": [
{
"amount": 20,
"date": "2019-01-01T00:00:00.000Z",
"type": "credit",
"name": "Emarat",
"description": "",
"details": ""
},
{
"amount": 1500,
"date": "2019-01-01T00:00:00.000Z",
"type": "credit",
"name": "SharafDG",
"description": "",
"details": ""
},
{
"amount": 30.5,
"type": "credit",
"name": "Direct bank transfer to Aziz",
"description": "Direct bank transfer",
"details": "",
"date": "2019-11-03T11:19:26.888Z"
}
]
},
"done": true
}
202: Accepted
// Asynchronous response
{
jobID: '25701700-ec8b-5d7e-8410-f260bb7a5139',
success: true,
msg: 'Job Initialized',
}
422: Unprocessable Entity
{
"msg": "Parameters validation error!",
"success": false,
"field": "appSecret",
"err": "The 'appSecret' field is required!"
}