getPlanStats( )


Gets statistics about the pricing plans. Currently provides only the total number of pricing plans, including archived plans.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Pricing Plans
Read Pricing Plans
Learn more about app permissions.
Method Declaration
Copy
function getPlanStats(): Promise<GetPlanStatsResponse>;
Request
This method does not take any parameters
Returns
Return Type:Promise<GetPlanStatsResponse>
JavaScript
import { plans } from "@wix/pricing-plans"; async function getPlanStats() { const response = await plans.getPlanStats(); }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?