Manage Shopify webhooks using our new Amazon EventBridge integration

Highlighted
New Member
1 0 2

hello help i get this error when registering the webhook

{
"webhook": {
    "topic""products/update",
    "address""arn:aws:events:us-east-1::event-source/aws.partner/shopify.com/4051183/awesome-app-webhooks",
    "format""json"
  }
}

 

Response:

{
    "errors": {
        "address": [
            "is invalid",
            "is an AWS ARN and includes api_client_id '4051183' instead of '4051275'"
        ]
    }
}
2 Likes
Highlighted
Tourist
6 1 0

Subscribing to this topic. I have the same issue when `POST`ing this to the REST endpoint (I am using REST instead of graphql because of this issue

 

{
  "webhook": {
    "topic": "checkouts/create",
    "address": "arn:aws:events:us-east-1:246797399506:rule/aws.partner/shopify.com/1891866/merchrock-stats/CHECKOUTS_CREATE",
    "format": "json"
  }
}

 

and the error response:

{
  "errors": {
    "address": [
      "is invalid",
      "is not a valid AWS ARN"
    ]
  }
}

 

0 Likes
Highlighted
New Member
1 0 1

The same problem haunts my project. Is it Shopify integration bug, or the docs miss necessary information?

1 Like
Highlighted
New Member
1 0 0

I'm getting the following error after copy/pasting from the tutorial:

 

mutation {
  eventBridgeWebhookSubscriptionCreate(
    topic: PRODUCTS_CREATE
    webhookSubscription: {
      arn: "arn:aws:events:us-east-1::event-source/aws.partner/shopify.com/...."
      format: JSON

  })
  {
    webhookSubscription {
      id
    }
    userErrors {
      message
    }
  }
}

I get the following response:

{
  "data": {
    "eventBridgeWebhookSubscriptionCreate": {
      "webhookSubscription": null,
      "userErrors": [
        {
          "message": "You cannot create a webhook subscription with the specified topic"
        }
      ]
    }
  },
  "extensions": {
    "cost": {
      "requestedQueryCost": 10,
      "actualQueryCost": 10,
      "throttleStatus": {
        "maximumAvailable": 2000,
        "currentlyAvailable": 1990,
        "restoreRate": 100
      }
    }
  }
}
0 Likes
Highlighted
New Member
1 0 0

I had the same bug and fixed it by using the workaround described here : https://community.shopify.com/c/Shopify-APIs-SDKs/AWS-EventBridge-set-up/m-p/816093

0 Likes