Re: Event bridge develop app

Event bridge develop app

dstrugacevac
Shopify Partner
7 0 0

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.

1.png

Untitled.png

3.png

   

Replies 10 (10)

lizk
Shopify Staff
246 58 79

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.

dstrugacevac
Shopify Partner
7 0 0
Hello, i just created new apl and give permissions for read/write products/oeders because i want catch events when orders/products is created or updated.
I followed and did first 3 steps from documentation(create app, create event bridge source and setup rules on aws).
dstrugacevac
Shopify Partner
7 0 0

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

lizk
Shopify Staff
246 58 79

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.

dstrugacevac
Shopify Partner
7 0 0
U are talking for shopify develop app on store right? How to send api call if i have no options in app to send any request
lizk
Shopify Staff
246 58 79

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.

dstrugacevac
Shopify Partner
7 0 0
Can u please describe each step how to finish step 4 from documentation please.
lizk
Shopify Staff
246 58 79

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.

dstrugacevac
Shopify Partner
7 0 0

Im using shopify admin, can u send some screenshots where i need to subscribe to event please. This tutorial does not help me 

lizk
Shopify Staff
246 58 79

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.