Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

How to tell which shop fired the webhook? by shaharsol

$
0
0

I created a webhook for orders/fulfilled, and now Shopify POSTs my app whenever a shop that installed the app fulfilled an order. My question is: how can I tell which shop is that (in case there's more than one shop that installed the app)?

The only hint I can find in the JSON I get in the webhook is line_items[0].vendor which gives me the shop name (that's the name of the shop, not the URL by which I identify the shop in my database). Is that all I have to work with? Should I save the name of the shop in my database to be able to later identify it by name? 


Viewing all articles
Browse latest Browse all 25503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>