Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

Re: Registering webhook when installing the app

Registering webhook when installing the app

ignite30
Shopify Partner
9 0 3

Hi there,

 

I'm planning to register a webhook to my public app.

I saw some documentation where they register the webhook (and billing charges) on the /shopify/callback. Since the /shopify/callback service is requested everytime we click on the app, what's the best way to register only one time the webhook and the billing charge?

 

Kind regards.

Replies 2 (2)

ignite30
Shopify Partner
9 0 3

BUMP

Zameer
Shopify Staff
297 31 90

Hey there,

 

The '/shopify/callback' URL which is used in the online tutorial is an example of one possible value for the webhook address. There is nothing special about the URL, and this can indeed be anything you would like it to be. 

 

Webhook notifications are sent based on the topic you subscribe to, each being triggered by different events.

 

You should be able to create a single webhook subscription using the Webhook API. What exactly are you having trouble with?

To learn more visit the Shopify Help Center or the Community Blog.