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:
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.
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)