Webhooks Configuration
Using the Webhook feature, the system will automatically create the entry in Odoo for the vital operations carried out by Shopify end. For eg., when you create a new product in Shopify, webhook will simultaneously create the product in Odoo as well when a Product, Orders, and Customers are created in Shopify.
You can configure webhook in 2 ways:
- From Configuration
You can navigate to Shopify » Configuration » Setting. Under the Webhook Configuration. You can select the respective process you wish to implement. Enabling the process will either create a new webhook for all actions (such as ‘create’, ‘update’, ‘delete’ etc.) or activate it if it already exists.
- From Instance
If you wish to activate a particular Webhook service, you can activate it by navigating to Shopify » Configuration » Instance. If you wish to create a particular Webhook, you can by clicking on Edit and Add a line.
Webhooks can be managed using the below options.
Enabling an option will either create a new webhook for all actions (such as ‘create’, ‘update’, ‘delete’ etc.) or activate it if it already exists. Disabling an option will deactivate the webhooks. Note that, only instances having an SSL connection (HTTPS://) are permitted.
For detailed options,
- Go to Shopify » Configuration » Instances.
- Open an instance.
- Select the Webhooks tab.
The types of Webhooks Action that are available with this connector are:
- When Product is Created/Updated
- When Product is Deleted
- When Order is Created/Updated
- When Customer is Created
- When Customer is Updated
When the above operation takes place in Shopify, you can get instant updates in Odoo via Webhook. Apart from this, you can also mark certain Webhooks active/inactive from Shopify » Instances, go to any instance and navigate to the Webhooks tab.
An Important Information regarding Webhook for Shopify sellers:
Shopify has implemented a five-second timeout period and a retry period for subscriptions. It waits five seconds for a response to each request to a webhook. If there is no response, or an error is returned, then Shopify retries the connection 19 times over the next 48 hours. If there are 19 consecutive failures, then the Webhook subscription of Shopify customers is deleted.
A warning that the subscription will be deleted is sent to the app’s emergency developer email address. If you observe any such discrepancy, please use the refresh button shown below, to get the updated status of the webhooks.
Note that, if an instance is deactivated, the related webhooks will be ‘Inactive’ automatically. If an instance is reactivated, the related webhooks will not be activated automatically and needs to be activated manually.
It is always recommended for sellers to check the Webhook-related updates from Shopify’s end. There can be periodical updates for the functional processes of Webhook developed by Shopify.
WARNING
The Webhooks created using the API do not show up in the Shopify admin. Only instances having an SSL connection (HTTPS://) are permitted.