This API endpoint lets you register webhooks and the events you would like to listen to. You can create a global event listener by omitting the event key, this will let you listen to all of the currently available events and all the events to be added in the future.
the HTTP method to be used when sending the request to your server. POST, PUT, or PATCH
an HTTPS URL pointing to the endpoint you would like to recive the webhook on.
the shared secret is a password used to verify that moyasar sent the webhook.
an array of events to get notified about. leave empty to listen to all events or pick some from the webhooks reference.