Is there a way to subscribe to multiple webhook topics simultaneously w/a single GraphQL call?

Is there a way to subscribe to multiple webhook topics simultaneously w/a single GraphQL call?

NihilVitae
Shopify Partner
4 0 2

I'm noticing that the webhooks API seems to only permit subscription to a single webhook topic at a time.

 

Is this correct?

 

Is there not a way to subscribe to multiple webhook topics simultaneously, or is it that, for each webhook topic subscription, one must send a discrete call to the Shopify admin API? Because, if the latter is the case, then every time someone were to install an app that requires subscriptions to, say, 20 webhook topics, that would require 20 separate calls, which seems a little nuts.

Replies 2 (2)

rohanrajpal
Shopify Partner
42 0 13

Hey Nihil. Were you able to figure out a way to do this? we have to subscribe to 10 webhooks and indeed it seems nuts to make 10 separate API calls

 

Founder | Spur Feel free to reach out to me at @rohanrajpal98 on Twitter

rohanrajpal
Shopify Partner
42 0 13

I think a bulkMutation is what might solve this issue

https://shopify.dev/api/admin-graphql/2022-10/mutations/bulkoperationrunmutation

 

Founder | Spur Feel free to reach out to me at @rohanrajpal98 on Twitter