Sales Channel Source Codes

scottrb
New Member
1 0 0

I wasn't able to get any help from Shopify support on this,  But i'm trying to set up an integration.   and i'm not able to identify what these order sources (sales channels) are.  

Can anyone help me here:  

 

scottrb_0-1626652387810.png

580111

1662707

1198752

1520611

2376822

340319

iPhone

1150484

1424624

1861051

Replies 9 (9)
csam
Shopify Staff
Shopify Staff
267 40 43

Hi @scottrb 

I was able to find a good answer that was previously posted here: https://community.shopify.com/c/Shopify-APIs-SDKs/Get-order-s-sales-channel-name/m-p/324788/highligh...

 

In some cases, the source_name will be set to a reserved value such as web or pos to denote that the order originated from Shopify Online Store or Shopify POS. 

For any third-party sales channels, the value is set to the app id of the sales channel. If you know the app id of the Amazon channel (by inspecting a known order), for example, you could build a mapping service on your end.



580111 is also the online store or "web" - depending on how the order is created, it will sometimes be saved as the ID.

 

 

CS | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

daniellanger
Shopify Partner
9 0 10

@scottrb did you ever build a mapping of these? I'm also curious about 1662707

 

I also may have mapped a few, so I'm wondering if you can confirm/deny any:

 

3009811 pinterest

4383523 tiktok

2329312 facebook

1780363 google

HorseCowboy
Shopify Partner
57 0 16
A couple more that are known to me:
 
294517 ReCharge Recurring Billing & Subscriptions
118385 iphone
Check out why Shopify store owners are switching to Horse for all of their inventory management needs.
HorseCowboy
Shopify Partner
57 0 16

Actually just found a few more

 

1777077 codisto
88312 buy button
1195292 messenger
3890849 Shop
118385 iphone
412739 pinterest

Please I wish there was an API for this! I can't show IDs to a user, it looks terrible!
Check out why Shopify store owners are switching to Horse for all of their inventory management needs.
HorseCowboy
Shopify Partner
57 0 16

Two more

 

5192647 Glopal
1830279 Draft Order
 
Would love to know these:
 
1424624
791107
5052085
5811989
2612735
Check out why Shopify store owners are switching to Horse for all of their inventory management needs.
HorseCowboy
Shopify Partner
57 0 16

Some tips for figuring it out. Find an order with one of those app_ids. Then look at

 

- source_name (obviously)

- source

- referring_site

- client

- payment_gateway

 

Sometimes there is information in those that gives you the name of the app. Other times you get nothing.

 

If you have access to you can filter Orders by App and then look at the "sales_channel" query parameter in the URL to get the App ID.

Another way is to open the app and look at the Network tab and you'll see requests from your browser to Shopify with data about your use of Shopify. In those requests you will see the App ID used to identify that you opened that app, for example.

Check out why Shopify store owners are switching to Horse for all of their inventory management needs.
daniellanger
Shopify Partner
9 0 10

@HorseCowboy I just saw this was released! https://shopify.dev/changelog/channel-attribution-is-now-available-in-beta

 

Looks like we won't have to do this anymore?

HorseCowboy
Shopify Partner
57 0 16

@daniellangerOh that is exciting! However, it looks like apps must specify the `source_name`. Therefore it requires app authors to update their apps to specify their source_name themselves. So it's of no help attributing older orders and it's of no help translating app_ids to app / channel names. Therefore it would still be nice if someone were to come tell us what those app IDs are or provide an API that provides them. It's one of many little attributes that Shopify keeps hidden for no reason.

Check out why Shopify store owners are switching to Horse for all of their inventory management needs.
daniellanger
Shopify Partner
9 0 10

Has anyone made progress here?