Get the Order sales channel from API

user072319
Excursionist
80 0 6

We are developing a Shopify app and for its functionality I want to know where the Shopify store(client store) order is coming from. For example, if the order is placed from Google Ads how can I know its from Google Ads through API? Similarly for other Sales Channels like Facebook.

0 Likes
Bunty
Explorer
114 29 69

Most sales channels add the 'source_name' value in the order JSON key, but I'm not sure about Google/Facebook. I might be worth looking at some order data to understand if that holds true across the dataset you have to work with.