Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hello, i created new shopify develop app, create and configure all on aws (event source, rule, api destination) and i allowed installed app to read orders and products. I want to receive events when orders and products are created or updated but i dont receive any event on my event bridge source.
Hi there 👋
I would start with querying your webhook subscriptions and reviewing the topics that you are subscribed to.
Could you confirm what webhook topics you are subscribed to? And what steps you have been taking to trigger the webhooks?
You can reference the how to create the webhook subscriptions here.
To learn more visit the Shopify Help Center or the Community Blog.
Also, can i describe how to subsribe to webhook. Step by step because i followed documentation and dont know where can i subscribe and put all of these informations
Hi you will want to complete Step 4 of that tutorial.
You will make a POST API call to POST /admin/api/2023-07/graphql.json with the following mutation.
mutation {
eventBridgeWebhookSubscriptionCreate(
topic: PRODUCTS_CREATE
webhookSubscription: {
arn: {ARN}
format: JSON
}
) {
webhookSubscription {
id
}
userErrors {
message
}
}
}
Or if you are using the Shopify CLI, you can take a look at this tutorial to subscribe to webhooks with the app template.
To learn more visit the Shopify Help Center or the Community Blog.
If you would like to use AWS eventbridge you will need to be able to make API calls to register a webhook subscription. To create an API key you will create an app. This can be done through the Shopify CLI or through the Shopify Admin.
To learn more visit the Shopify Help Center or the Community Blog.
The tutorial linked above should walk you through creating a Shopify App and registering a webhook.
To learn more visit the Shopify Help Center or the Community Blog.
Im using shopify admin, can u send some screenshots where i need to subscribe to event please. This tutorial does not help me
If you are using the Shopify Admin, you will need to generate an API key following these instructions.
And then complete Step 4 to register the webhook subscription. If you don't know how to make API calls you may want to consider hiring a Shopify Expert.
mutation {
eventBridgeWebhookSubscriptionCreate(
topic: PRODUCTS_CREATE
webhookSubscription: {
arn: {ARN}
format: JSON
}
) {
webhookSubscription {
id
}
userErrors {
message
}
}
}
To learn more visit the Shopify Help Center or the Community Blog.