Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Product update webhook gets deleted automatically after few days

Product update webhook gets deleted automatically after few days

khaledhasan
Shopify Partner
3 0 1

We have created a product webhook in one of our shopify stores and in our backend we are sending back 200 OK response as soon as the webhook hits our API endpoint. 
The issue is even if it works but for some strange reason Shopify is deleting our webhook from the stores after couple of days automatically. It is causing issue and inconvenience as we have to check it manually and also have to create the webhook when it gets deleted. 

Any help will be highly appreciated. Thanks in advance.

/**
 * POST Product update
 *
 * @Anonymous {Request} req
 * @Anonymous {Response} res
 */
router.post('/update', async (req: Request, res: Response) => {

  res.status(200).send('Received Product Update Data');

  try {
   ...
  .
  .
  .
  ...

 

Replies 2 (2)

james-langille
Shopify Staff (Retired)
70 15 28

Hello @khaledhasan,

Sending back a 200 OK is the right thing for your app to be doing when it receives webhooks. However, I'm wondering if there might be issues at the network-level trying to connect to your application in the first place (such as a timeout?)... Could you help me by telling me some more information such as the error(s) you are seeing (if any), your store id, and the details of the subscription you've created?

To learn more visit the Shopify Help Center or the Community Blog.

indigo-mountain
Visitor
2 0 0

We are facing the same issue is there any solution?