Distinguishing between orders and subscriptions in Shopify Webhook events

Shopify Partner
1 0 0

Hello there,

We're using Shopify webhooks to track incoming orders, and we're trying to distinguish between regular orders and subscription-related ones when we receive events from the "order/create" Webhook.

Is there a specific attribute or method within the "order/create" Webhook payload that can help us determine the event type?

Reply 1 (1)

5 0 1

Hey, you have to look at header field `X-Shopify-Topic`