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