Custom Notifications

By default, our system would send notification to customers in every transaction. However, we understand that some platforms would prefer to send their own custom notifications and of course, we've got this covered too. Custom Notifications We have also made it easy for businesses to customize the emails notifications that their clients receive using the endpoint below:

post
send custom notification

https://api.vesicash.com/v1/notifications/email/send/custom
Request
Response
Request
Headers
Accept
required
string
application/json
V-PRIVATE-KEY
required
string
your vesicash private key to give access to users
Form Data Parameters
transaction_id
required
string
id of the transaction
notification_type
required
string
Type of notification. E.g 'payment-made', 'transaction-sent'
content_for_sender
optional
string
A formatted dictionary/json indicating the subject and content of the email.
content_for_recipient
optional
string
content_for_seller
optional
string
content_for_business
optional
string
content_for_buyer
optional
string
id of the transaction
Response
200: OK
{
"status": "ok",
"code": 200,
"message": "Mail sent",
"data": null
}

For instance: you can a make a post request to the endpoint above and pass in the json data below to send custom transaction notifications.

{
"transaction_id": "6oXRUmQJiHEaF2eqR0Uz",
"notification_type": "welcome",
"content_for_sender": {
"subject": "Custom Notification Test",
"content": "<b>[transaction_id] ([transaction_title]) has been paid for 2pm</b>"
},
"content_for_buyer": {
"subject": "Custom Notification Test",
"content": "<b>Custom Message</b>"
},
"content_for_recipient": {
"subject": "Custom Notification Test",
"content": "<b>Custom Message</b>"
},
"content_for_seller": {
"subject": "Custom Notification Test",
"content": "<b>Custom Message</b>"
},
"content_for_business": {
"subject": "Custom Notification Test",
"content": "<b>Custom Message</b>"
}
}

To access this functionality, kindly email techsupport@vesicash.com.