Gets statistics about the pricing plans. Currently provides only the total number of pricing plans, including archived plans.
You can only call this method when authenticated as a Wix app or Wix user identity.
function getPlanStats(): Promise<GetPlanStatsResponse>;
import { plans } from "@wix/pricing-plans";
async function getPlanStats() {
const response = await plans.getPlanStats();
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.