I am able to create a single webhook using Shopify API for my app.
I'm having hard time finding out a way to make multiple webhooks at once. I want to setup multiple webhooks at once.
Awaiting setup for webhooks one by one takes in a lot of time (not ideal for production).
I have created a shopify service that takes in 2 arguments
topic of the webhook (e.g. 'products/create')
url for the webhook (e.g. 'mywebsite.com/api/products/create')
await shopifyService.createWebhook(ShopifyWebhook.productsUpdate, `${origin}/${ShopifyWebhookUrl.productsUpdate}`);
I would like something like an array of [topic,webhookUrl] that I could send to shopify in one go to create all the webhooks for client.
Much thanks in advance for any kind of help :)