Hi i'm currently required to create webhooks to listen for any updates that Synapse Pay send to me. In a nutshell im gathering users information to prepare and submit. Once i submit the users information i need to listen to check when the user is verified by Synapse Pay.
Firstly i know that i need to Subscribe(POST) to be able to recieve the webhook based on this information post.
{
"scope": [
"USERS|POST",
"USER|PATCH",
"NODES|POST",
"NODE|PATCH",
"TRANS|POST",
"TRAN|PATCH"
],
"url": "http://requestb.in/11uvkob1"
}
Is the url that i use in the POST the address to my server webhook address?
The app that im posting the information is from a Mobile App using xamarin and need to listen from the mobile app so i might need to do some realtime from the server to the app to listen out for the verification im not sure.
I've seen many examples of using webhooks for Dropbox, Slack, Azure, Github etc. from a Github Library. But Synapse Pay (I think) will require some form of custom solution which i have no clue where to start with that.
So I'm assuming that i create a webhook service
Provide the url for the website in the subscription post
Synapse Pay pings the url that i've created
I update my database on the server side
Push the information to the mobile app
Is this the correct flow?
If so can someone please direct me on how i would create the webhook and be listening for any events that happen from Synapse.
Thanks