Get Shop information by Shop ID

Is it possible to query for shop information/object by shop id?

Hi

To access Shop information you would need to create an app. You could create an Admin Custom App, this app would be tied to a single shop. You would receive an access token for that particular shop, and then could query the shop information.

An alternative would be creating a public app, you would receive an app secret key. Then during installation with the Shop, during OAuth you would receive an access token for that particular shop. Then you could use that access token to query the shop information the same as a admin custom app.

With either approach you will need an access token that is generated for that specific shop to query information about it.

But this isn’t really a query by shop id. Is it possible for example if an app that is installed to Shop A and given they are also owners or partial owners of Shop B and thus the user will have view of the shop id. With the information in hand, can Shop A query public information of Shop B given the shop id?

An example use case, as an owner of Shop A and Shop B, I would like to see Shop B in a table view from Shop A and vice versa

Yup you are correct.

You cannot query by Shop Id, because you need to have an access token (api key) for each shop to query the shops information from the Admin API.

You will need to generate an API key for each Shop then you would be able to query for the information you wanted to consolidate.