Webhook Notifications
Notification Management
Create a subscription
code examples curl location 'https //sand api monoova com/au/core/notification v1/subscription' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{"body" {"subscriptionname" "string","eventname" "string\<paymentagreementnotification | paymentinstructionnotification | creditcardpaymentnotification | creditcardrefundnotification | directentrydishonour | nppreceivepayment | inbounddirectdebit | inbounddirectcredit | pendinginboundrtgsimt | inboundrtgsimtstatus | mtptransactionnotification | cloudgwbatchtransactionsnotification | paytoreceivepayment | npppaymentstatus | nppreturn | payidpayment | nppcreditrejections | inbounddirectcreditrejections | asyncjobresultnotification | sftpnotification | internationalnpppaymentreturn | internationalnpppaymentstatus>","webhookdetail" {"callbackurl" "string"},"isactive"\ false,"emaildetail" {"toaddress" \["string"]}}}'var options = new restclientoptions("https //sand api monoova com") { maxtimeout = 1, }; var client = new restclient(options); var request = new restrequest("/au/core/notification v1/subscription", method post); request addheader("accept", "application/json"); request addheader("content type", "application/json"); var body = @"{""body"" {""subscriptionname"" ""string"",""eventname"" ""string\<paymentagreementnotification | paymentinstructionnotification | creditcardpaymentnotification | creditcardrefundnotification | directentrydishonour | nppreceivepayment | inbounddirectdebit | inbounddirectcredit | pendinginboundrtgsimt | inboundrtgsimtstatus | mtptransactionnotification | cloudgwbatchtransactionsnotification | paytoreceivepayment | npppaymentstatus | nppreturn | payidpayment | nppcreditrejections | inbounddirectcreditrejections | asyncjobresultnotification | sftpnotification | internationalnpppaymentreturn | internationalnpppaymentstatus>"",""webhookdetail"" {""callbackurl"" ""string""},""isactive""\ false,""emaildetail"" {""toaddress"" \[""string""]}}}"; request addstringbody(body, dataformat json); restresponse response = await client executeasync(request); console writeline(response content);var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "body" { "subscriptionname" "string", "eventname" "string\<paymentagreementnotification | paymentinstructionnotification | creditcardpaymentnotification | creditcardrefundnotification | directentrydishonour | nppreceivepayment | inbounddirectdebit | inbounddirectcredit | pendinginboundrtgsimt | inboundrtgsimtstatus | mtptransactionnotification | cloudgwbatchtransactionsnotification | paytoreceivepayment | npppaymentstatus | nppreturn | payidpayment | nppcreditrejections | inbounddirectcreditrejections | asyncjobresultnotification | sftpnotification | internationalnpppaymentreturn | internationalnpppaymentstatus>", "webhookdetail" { "callbackurl" "string" }, "isactive" false, "emaildetail" { "toaddress" \[ "string" ] } } }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("https //sand api monoova com/au/core/notification v1/subscription", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));\<?php $curl = curl init(); curl setopt array($curl, array( curlopt url => 'https //sand api monoova com/au/core/notification v1/subscription', curlopt returntransfer => true, curlopt encoding => '', curlopt maxredirs => 10, curlopt timeout => 0, curlopt followlocation => true, curlopt http version => curl http version 1 1, curlopt customrequest => 'post', curlopt postfields =>'{"body" {"subscriptionname" "string","eventname" "string\<paymentagreementnotification | paymentinstructionnotification | creditcardpaymentnotification | creditcardrefundnotification | directentrydishonour | nppreceivepayment | inbounddirectdebit | inbounddirectcredit | pendinginboundrtgsimt | inboundrtgsimtstatus | mtptransactionnotification | cloudgwbatchtransactionsnotification | paytoreceivepayment | npppaymentstatus | nppreturn | payidpayment | nppcreditrejections | inbounddirectcreditrejections | asyncjobresultnotification | sftpnotification | internationalnpppaymentreturn | internationalnpppaymentstatus>","webhookdetail" {"callbackurl" "string"},"isactive"\ false,"emaildetail" {"toaddress" \["string"]}}}', curlopt httpheader => array( 'accept application/json', 'content type application/json' ), )); $response = curl exec($curl); curl close($curl); echo $response; responses // ok { "traceid" "", "subscriptionid" "" }// bad request { "traceid" "", "errors" \[ { "errorcode" "", "errormessage" "" } ] }// unauthorized { "traceid" "", "errors" \[ { "errorcode" "", "errormessage" "" } ] }// forbidden { "traceid" "", "errors" \[ { "errorcode" "", "errormessage" "" } ] }// not found { "traceid" "", "errors" \[ { "errorcode" "", "errormessage" "" } ] }// internal server error