How can we manage customer orders and inventory with a Shopify App?

Hey guys,

We are building shopify APP for managing our customers order, inventory into our system. We are multi-tenant based system.

ie. for client abc we have domain abc.mydomain.com and for client xyz we have domain website as xyz.mydomain.com. We manage users per clients.

So whenever our shopify application get installed on particular store and when it redirects to our system we need to know for which client that app being installed and that clientID should be store in shopify app install. So whenver it opens app from shopify portal it should redirect to that clientID based URL.

Let me know how can we acheive this.

@Developers_8