Hi,
Need guidance on setting up and using webhooks with shopify-app-template-php
I am attempting to set up Webhooks in a shopify app generated by the shopify-app-template-php. There is no clear documentation I can find about how to do this.
How am I supposed to register a Webhook for example orders/create overriding the boilerplate that Shopify has provided in this template?
What is the correct way to process them after this? Where is the /api/webhooks endpoint that the boilerplate code sets being used? I can’t find it in the template.
This is extremely unclear what the pattern should be for using Webhooks with this template without overriding the boilerplate code, and there are no docs I can find specifically to guide me.
Can anyone please help point me to the correct docs for how to set up and use Webhooks within this template?
Note:
I am developing a custom app that requires me to perform a certain task on when an event occurs in the store.
Topic summary
Request for guidance on implementing Shopify Webhooks in an app built from shopify-app-template-php. The author can’t find clear documentation on how to register and process webhooks within the template without overriding its boilerplate.
Key questions:
- How to register a webhook (e.g., orders/create) using the template’s intended pattern rather than custom code?
- What is the correct processing flow after registration?
- Where and how the /api/webhooks endpoint defined by the boilerplate is actually used, since it’s not visible in the template?
Context: The app is a custom (private) app that must trigger specific tasks when store events occur. Webhooks are event notifications sent by Shopify to an app’s endpoint when events (like order creation) happen.
Status: No answers or documentation links provided yet; issue remains unresolved and seeking official docs or examples.