Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hi community, how are you? I'm trying to develop an app using remix "npm init @Shopify/app@latest".
The app is vinculated with my develop store and with npm run dev it can be installed in my partners dashboard.
Now, what do I have to do in order to subscribe the webhooks? I mean literally in my partner's webhooks metric it says "100% failure" even at the app/uninstalled webhook, I tried putting more scopes, setting a few more webhooks like ORDERS_CREATED following the same format as APP_UNINSTALLED, I updated the webhooks.js file so they can be registered and nothing happens, what should I do in order to register that one and others and test them? I can see that we are a lot of developers fighting with this issue, isn't there any youtube tutorial updated? The only way I could register a webhook is through this mutation:
query:"mutation webhookSubscriptionCreate($topic: WebhookSubscriptionTopic!, $webhookSubscription: WebhookSubscriptionInput!) { webhookSubscriptionCreate(topic: $topic, webhookSubscription: $webhookSubscription) { webhookSubscription { id topic format endpoint { __typename ... on WebhookHttpEndpoint { callbackUrl } } } } }",variables: {topic: "ORDERS_UPDATE",webhookSubscription: {callbackUrl: `${MY_URL}/webhooks`,format: "JSON",},},