I think when you first create your shop, you automatically get an Online location, which is pretty easy to identify since it's literally called "Online Location". But since the name can be changed, this isn't reliable to determine that this location can fulfill online orders, or that it should be included in "online" inventory. I'm looking for another way to tell that a location is "online" so I can consider the inventory at that location available for online fulfilment. Unfortunately the Locations API doesn't have an online flag for each location.
So my questions are:
1. Using the API (REST or GraphQL, doesn't matter which) how can I get only the online inventory for a given product or variant?
2. How can I reliably know that a given location can fulfil online orders?
Thanks for the assistance with this. I'm ok with the Locations API and the InventoryItem resource, etc. It's not a problem to get the inventory info, it's that I can't see a way to know which store locations are online.
For example, when I go to the Locations section in my settings, I see this:
Is there a way via the Locations API to get that "Fulfill online order from this location" flag? If I could tell that it was an "online" location, then I can just get the inventory for the online locations and I'd be done. It's that I can't tell if it's an "online" location or not.