Order Create Webhook Not Triggering with Real Orders

Hi everyone,

I’ve added an orders/create webhook to my Shopify app, and it’s working fine when I test it using the Shopify CLI (shopify webhook trigger orders/create). However, when I place a real order in my store, the webhook is not triggered.

Here’s what I’ve done so far:

  • Verified the webhook is registered correctly via the Shopify Admin API.
  • Tested with the Shopify CLI, and it successfully triggers the webhook.
  • Checked the webhook logs in my app, but no real orders are coming through.
  • Confirmed that my app has the necessary permissions (read_orders).

Has anyone encountered this issue before? Are there any additional steps I should take to troubleshoot why real orders aren’t triggering the webhook?

Thanks in advance for any help!

Hello,
Checked the webhook logs in my app, but no real orders are coming through : Are logs getting generated and what is being sent in the log, can you share what you are getting in the log file.

webhooks if fired should result in your app function getting the posted data, provided permissions are in place.
So the first step in debugging would be to ensure logs are getting generated and to know what all data is captured in log.

import { authenticate } from "../shopify.server";

export const action = async ({ request }) => {
const { shop, topic } = await authenticate.webhook(request);

console.log(`Received ${topic} webhook for ${shop}`);

return new Response();
};