Web Order versus POS Order

Solved
Shopify Partner
8 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
Shopify Partner
871 76 187

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
Shopify Partner
871 76 187

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
Shopify Partner
8 0 0

Thank you.

0 Likes