Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hey what's up,
My name is Noah and I'm currently building a tracking software for e-commerce brands that I want to integrate with Shopify.
The Shopify webhooks which you can use in the Notification Settings of a Shopify store ("Cart created", "Checkout created", "Order created") are pretty much perfect for what I am trying to achieve. But they are missing a custom variable that I need to be connected to the event so that I am able to trace the sale back to a certain visitor.
So basically my question is if it is possible to customize these webhooks or implement my own.
I'm kinda new to Shopify development so I'd really appreciate any kind of help on this.
Looking forward to your replies.
Kind regards,
Noah 🙂
Solved! Go to the solution
This is an accepted solution.
Hi Noah,
You cannot create your own webhook, you'll have to subscribe to an existing webhook topic.
However you're able to filter the fields you receive in the webhook payload. See more information here: https://shopify.dev/api/admin-rest/2022-01/resources/webhook#resource-description
mrad | Developer @ 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
This is an accepted solution.
Hi Noah,
You cannot create your own webhook, you'll have to subscribe to an existing webhook topic.
However you're able to filter the fields you receive in the webhook payload. See more information here: https://shopify.dev/api/admin-rest/2022-01/resources/webhook#resource-description
mrad | Developer @ 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
Okay, thank you for your swift reply.