Payment

post
Payment Initiation

https://api.dapi.co/v1/payment/Payment
Request
Response
Request
Headers
Authorization
required
string
Bearer <accessToken>
Body Parameters
receiverID
required
string
The ID of the beneficiary that will receive the money. This is acquired through a previous call to the GetBeneficiaries endpoint
amount
required
number
Amount of money to be sent
senderID
required
string
The ID of the account that the money will be sent from. This is acquired through a previous call to the UserAccounts endpoint
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
// Synchronous and Webhook Response
{
"jobID": "290af268-62ea-5ce7-81ac-bef8af52f967",
"success": true,
"msg": "Job Initialized",
"result": {
"success": true,
"msg": "Smartpass token is required!"
},
"done": false
}
202: Accepted
// Asynchronous response
{
"jobID": "83515136-9146-523a-9936-3229d51fd49d",
"msg": "Job Intitalized",
"success": null
}
422: Unprocessable Entity
{
"msg": "Parameters validation error!",
"success": false,
"field": "appSecret",
"err": "The 'appSecret' field is required!"
}

post
Payment Resumption

https://api.dapi.co/v1/payment/Payment
Request
Response
Request
Headers
Authorization
required
string
Bearer <accessToken>
Body Parameters
otp
required
string
OTP code from user
jobID
required
string
A job UUID returned from Payment Initiation
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
Response
200: OK
// Synchronous and Webhook Response
{
"jobID": "290af268-62ea-5ce7-81ac-bef8af52f967",
"success": true,
"msg": "Job Finished",
"result": {
"success": true,
"msg": "Payment initiated successfully"
},
"done": true
}
202: Accepted
// Asynchronous response
{
"jobID": "290af268-62ea-5ce7-81ac-bef8af52f967",
"msg": "Job Resumed",
"success": null
}
422: Unprocessable Entity
{
"msg": "Parameters validation error!",
"success": false,
"field": "appSecret",
"err": "The 'appSecret' field is required!"
}