About webhooks
Just wanted to confirm, if let's say we are syncing company locations from an ERP to shopify, and we have enabled the webhooks in gadget dev, so every time a syncing from ERP to shopify is happening, it will always trigger the webhooks right?
Scenario here is I have been updating a company location's checkout settings in gadget app. So if there's any changes in the value of current checkout settings, that's when I do the update else, skip it. But Now that I did that, the request time for webhook of company_locations/update became higher that it was before. It just doesn't make sense. I'm suspecting it because of the ERP to shopify syncing but can't find proof as of the moment.
6 Replies
Hello,
Yes, when making changes in Shopify, if you have the model enabled and it accepts webhooks, you will recieve webhooks for changes. Might I recommend adding webhook filtering and using includeFields?
Where's the documentation for that?
It says here that use the snake case field name from shopify? But upon checking the documentation in shopify api graphql, it uses the camel case? So which one should I use?


Use snake case. Its not how the field looks like in GraphQL. Its in the manner that they send them in webhooks
Alright. Thanks!