List all members with a pricing plan/subscription

Hey folks,

I would like to access my subscriptions dataset to list all the members who have a pricing plan. The issue is that there is no subscription dataset I can see. Just the members private dataset and the pricing plans but I don’t see the connection.

It is easy to get the current user pricing plan:

let user = wixUsers.currentUser;
user.getPricingPlans()
.then((pricingPlans)=>{
    let firstPlan = pricingPlans[0];

But I can’t find the access of all the current members who have a pricing plan and list them.
Maybe one of you knows how to crack this nut! :blush:

2 Likes

Is there a solution to this? I would also like to code this.

Looking for this too. Any solution?

Anybody found a way to do this ?

A bit late now although this is the function you will be looking for https://www.wix.com/velo/reference/wix-pricing-plans-backend/orders/listorders You can filter it so that only active plans are shown and if you are needing to do something with each user use buyer.memberId.

1 Like