Reputation: 3615
I have a Shopify app that creates a webhook for orders/fulfilled when a shop signs up, I also save some details about the shop as well as it's products.
When Shopify sends me fulfilled orders via the webhook, i want to associate this order with the appropriate shop to which it belongs.
I have looked in the data sent, but there's no shop name or shop url.
Is there a way for me to determine which shop the orders belong to?
Thanks.
Upvotes: 0
Views: 327
Reputation: 11427
If you have setup a Webhook then you know two things for sure.
If you are not authenticating your webhook you're doing it wrong. So the short answer to determining which shop is calling you is to look inside the header for the domain.
Upvotes: 1