How to register webhooks within Multivendor Marketplace App for Shopify?
A webhook in web development is a method of augmenting or altering the behavior of a web page or web application with custom callbacks. These callbacks may be maintained, modified, and managed by third-party users and developers who may not necessarily be affiliated with the originating website or application. Wikipedia
After configuration, the events that you specified will trigger a webhook notification each time they occur. For example, the
products/create webhook includes the following headers:
- X-MVM-API-Hmac-Sha256: XWmrwMey6OsLMeiZKwP4FppHH3cmAiiJJAweH5Jo4bM=
- X-MVM-API-Topic: products/create
- X-MVM-API-Shop-Name: multivendor-marketplace.myshopify.com
- X-MVM-API-Sid: 101
How to Register Webhooks?
You need to enable the Multivendor API add-on. Once you’ll add a user, you’ll be able to register webhooks.
Next, enter the webhook details you want to register. Check box the Webhook Topic, enter the Webhook URL and then save.
The admin can also register Webhooks for individual sellers. For this, visit Multivendor Admin Panel > Sellers > Seller Listing > Edit Seller:
Similarly, enter the details for the Webhooks you want to register:
- Register the webhook via Multivendor Admin Dashboard and not using API.
- Webhook will be triggered only when the event is hit via API end.
Example: In case you create a product from the dashboard, the webhook won’t be triggered. If you create a product via API, the webhook will be triggered.
Furthermore, if you have any issues, please drop an email at firstname.lastname@example.org. You can also create a ticket at Webkul UV Desk.