I want to use Wix to run my subscriptions engine. It's an online service that will be delivered from an external system. That system needs to be able to lookup into a subscriptions database to see if a given user has a valid subscription, and what their entitlements are.
I'm aiming to write an HTTP function (or functions) that allows an external system to lookup a user by email and return their PricingPlans objects.
The problem is that I can only see in the Corvid API a way to retrieve PricingPlans for the current user. How can I get PricingPlans for any arbitrary user?
Ideally by email, or possibly having one HTTP function allowing lookup by email to return a user ID, then another returning PricingPlans for a give user ID.
Any suggestions gratefully received!