Sales Channel As in Shopify Report

Highlighted
Excursionist
21 1 0

Hi There,

One of my client is looking for the sales channel field exactly as provided by Shopify reports. But in the rest api there were no fields related to the sales channel. I tried getting the sales channel data through the App id from graphql. Even though I was able to get it but was not exactly as in shopify.


In the Below screenshot,there are two different categories name:

  • Draft Orders
  • Quick Draft Orders

But when I fetch using the App id, it shows it as “Draft Orders”. There are couple of other channels that are not shown through the API.


Can anyone help me with this? Let me know if there is any specific field I am missing in the API.


Regards,

Screenshot(1).pngHeaven

0 Likes
Highlighted
Shopify Staff
Shopify Staff
582 70 127

Hey @PrakashGabriel,

There's no field in REST that will return the same formatted name you see in reports. The closest field will be source_name, which returns the handle for the channel/app that created the order ( web== Online Store, shopify_draft_order = Draft Order, etc)

JB | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes