How to query items ordered by customer?

Our use case is in cloud hosting. Users should be able to choose different service packages and quota using the ERPnext shop. They should be able to choose e.g. a quarterly subscription of package A with quota 10 GB and may upgrade the quota to 25 GB in half a year.

How could we query ERPnext, which package and quota a specific users has subscribed to?