Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

GraphQL eventBridgeWebhookSubscriptionCreate mutation fails without explanation (returns null)

GraphQL eventBridgeWebhookSubscriptionCreate mutation fails without explanation (returns null)

DoneDigital
Shopify Partner
1 0 0

Trying to register an event bridge webhook and running into a super frustrating issue both using the node SDK and using the GraphQL API directly via Postman/Insomnia.

 

I post the mutation and get back a 200 status but body gives:

 

 

{
  "data": {
    "eventBridgeWebhookSubscriptionCreate": {
      "webhookSubscription": null
    }
  }
}

 

 

 

What could be the cause? What am I missing?

 

Here's the mutation and variables for reference:

 

 

mutation eventBridgeWebhookSubscriptionCreate($topic: WebhookSubscriptionTopic!, $webhookSubscription: EventBridgeWebhookSubscriptionInput!) {
  eventBridgeWebhookSubscriptionCreate(topic: $topic, webhookSubscription: $webhookSubscription) {
    webhookSubscription {
      id
      topic
      format
      endpoint {
        __typename
        ... on WebhookEventBridgeEndpoint {
          arn
        }
      }
    }
  }
}
{  
  "topic": "CARTS_UPDATE",
  "webhookSubscription": {
    "arn": "arn:aws:events:us-east-1::event-source/aws.partner/shopify.com/123456789/test-event-source",
    "format": "JSON"
  }
}

 

 

If helpful for debugging purposes the store is daily-digest-test-store.myshopify.com

Reply 1 (1)

awwdam
Shopify Staff
249 42 38

Hey @DoneDigital ,

Just wanted to confirm if you already followed the Amazon EventBridge webhook setup guide here that goes over requirements, configuration, and setup of EventBridge - including the steps required in the Partner Dashboard > App Setup menu?

If so, and you are still facing unexpected behavior, I'd suggest logging an x-request-id from the API response header. From the Partner Dashboard > Support menu, select the Report an Issue option and fill out the form with any additional information you can provide around this issue.

While there is no guarantee that all submission are replies to, this is the best place to submit unexpected behavior involving the API and webhooks. 

Hope this helps - Cheers!

awwdam | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog