Webhooks allow you to be notified programmatically about events that occur within your Marketplace. Each event is send as a POST and contains a JSON representation of an event that has occurred. Different events can contain different content based on the event type.
Any event that you receive can be verified by ignoring the message payload and retrieving the event using the GET /events/{eventId} API method. Verifying events is important for security and ensuring that your endpoint URL isn’t being exploited by an unauthorized third party.
To set up one or multiple webhooks, first, go to “Settings” from the navigation menu and then select “Webhooks” from the list.
After that, click on the “Add Endpoint” button to set up a new webhook.
Next, insert the URL to which you want to receive notifications into the corresponding field
Then, check the boxes next to the events that you want to be notified about to the provided URL.
To finish setting up the webhook, scroll to the bottom of the list and then click on the “Save” button.
Once the endpoint is successfully created, the corresponding notification will indicate so at the top of the screen and the endpoint will appear in the list.
To modify a particular webhook, click on the “Edit” button next to the webhook you want to edit.
Next, make the preferred changes and then click on the “Save” button to apply them.
To delete a particular endpoint, first, click on the “Delete” button next to it.
After that, click on the “Delete” button again to confirm the action.