Where can I find a list of GraphQL webhook topics in uppercase format?

Solved

Where can I find a list of GraphQL webhook topics in uppercase format?

AnEpicName
Tourist
8 1 2

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?

Accepted Solution (1)

AnEpicName
Tourist
8 1 2

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

 

View solution in original post

Reply 1 (1)

AnEpicName
Tourist
8 1 2

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