Handle response from webhook API ?

SPEAZ
New Member
4 0 0

I'm trying to get the webhook data with a webhook created with WEBHOOK API https://shopify.dev/docs/admin-api/graphql/reference/events/webhooksubscription

i'm basically using the react api from shopify github , here is my code :

server.use(graphQLProxy({ version: ApiVersion.Unstable }));

router.post('/webhooks/products/update', verifyRequest(), async (ctx) => {
    console.log('received webhook: ', ctx); // output nothing ?
  
  });

  server.use(router.allowedMethods());
  server.use(router.routes());

and my server return me correctly the post request

POST /webhooks/products/update                                  302 Found   

But nothing in output ? any idea ?

0 Likes