Webhook list for GraphQL

Solved
AnEpicName
Tourist
8 1 0

Hi,

I want to find a list of webhooks topics for GraphQL, because the only ones I find are in lowercase this:

{
  "webhook": {
    "topic": "orders/create",
    "address": "https://12345.ngrok.io/",
    "format": "json"
  }
}

And I want them in this format with uppercase and underscores:

webhookSubscriptionCreate(
    topic: ORDERS_CREATE
    webhookSubscription: {
      format: JSON,
      callbackUrl: "https://12345.ngrok.io/"}
  ) 

 I tried to change the format just by change the words to uppercase and using the underscores, but in some webhooks it doesn't work, is it there an official list or something where I can see all of them in this format?

0 Likes
AnEpicName
Tourist
8 1 0

This is an accepted solution.

It was hard to find, but I finally found what I needed. I leave the link to the docs if anyone else has a hard time finding this: https://shopify.dev/api/admin/graphql/reference/events/webhooksubscriptiontopic

 

0 Likes