Web Order versus POS Order

Solved
SoloVueTest_Adm
Shopify Partner
12 0 0

My client will be using Shopify as a Point-of-sale (POS) as well as having the website.   How can I tell when downloading orders which orders were created with the POS and which are website orders?  I want to ignore the POS orders.

Thank you
Mike

0 Likes
Greg_Kujawa
Shopify Partner
1016 83 237

This is an accepted solution.

If you are talking about using an API for this, below is a GraphQL sample query. Pulling the 10 most recent orders, just for an example. The publication.title would the "Online Store" for any Shopify website orders. The other records that would list "Point of Sale" you would then ignore when iterating the results.

{
  orders(first: 10, reverse: true) {
    edges {
      node {
        id
        name
        publication {
          name
          app {
            title
          }
        }
      }
    }
  }
}

 

0 Likes
Greg_Kujawa
Shopify Partner
1016 83 237

Or you can specify the online store in your GQL query and not have to worry about discarding results. Although the formal title is "Online Store" for this sales channel, the query criteria is apparently just "web." See below. Hope this helps!

{
  orders(first: 10, reverse: true, query: "source_name:web") {
    edges {
      node {
        id
        name
        publication {
          name
          app {
            title
          }
        }
      }
    }
  }
}

 

0 Likes
SoloVueTest_Adm
Shopify Partner
12 0 0

Thank you.

0 Likes
dogowner
Excursionist
16 1 1

Although they are similar, `source_name` and the `publication.title` do not seem to be the same concept.  When I manually enter orders into the admin the orders come back with the query set to source_name: web but have publication on each order is null.

When I use graphql to fetch all my publications I only have a buy button and POS because I have disabled the online store.  Yet the orders are still marked as web.  Is something like source_name accessible on the order itself through graphql ?  (Since publication does not seem to be the same)  Or is there a place where I can find a better explanation of the difference?

0 Likes