SalesChannel for orders

Highlighted
Shopify Partner
1 0 0

I'd like to know what sales channel an order is associated with. For example, facebook, amazon, pinterest etc.  After some research I've discovered a few things, but left currently without a solution.

 

  • The REST api for orders does not have this property
  • Instead it has app_id. Which means I would need to lookup the app.
  • There is no REST endpoint to look up apps
  • The GRAPHQL endpoint for appInstallations shows access denied even though my app has read_apps permission (Which I guessed at, there is no permission for apps under https://shopify.dev/docs/admin-api/access-scopes)

So at the moment, I have no idea how to see that an order came from channel. Any help would be greatly appreciated.

 

Thanks!

0 Likes