Payment

post
Payment Initiation

https://api.dapi.co/v1/payment/Payment
Request
Response
Headers
Authorization
required
string
Bearer <accessToken>
Body Parameters
type
required
string
same, local, intl type of payment
beneficiaryAccountNumber
required
string
Destination account/iban to send to
amount
required
number
Amount of money to be sent
source
required
string
Source account/iban number to send from
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": "290af268-62ea-5ce7-81ac-bef8af52f967",
"success": true,
"msg": "Job Initialized",
"result": {
"success": true,
"msg": "Smartpass token is required!"
},
"done": false
}

post
Payment Resumption

https://api.dapi.co/v1/payment/Payment
Request
Response
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
200: OK
// Asynchronous response
{
"jobID": "290af268-62ea-5ce7-81ac-bef8af52f967",
"msg": "Job Resumed",
"success": null
}
// Synchronous and Webhook Response
{
"jobID": "290af268-62ea-5ce7-81ac-bef8af52f967",
"success": true,
"msg": "Job Finished",
"result": {
"success": true,
"msg": "Payment initiated successfully"
},
"done": true
}