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.

Customize Shopify Webhooks or implement my own

Solved

Customize Shopify Webhooks or implement my own

noah_haub
Shopify Partner
25 2 5

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 🙂

Accepted Solution (1)

mrad
Shopify Staff (Retired)
63 10 15

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

View solution in original post

Replies 2 (2)

mrad
Shopify Staff (Retired)
63 10 15

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

noah_haub
Shopify Partner
25 2 5

Okay, thank you for your swift reply.