getPlan( )


Gets an existing pricing plan by ID.

The getPlan() function returns a Promise that resolves to a plan whose ID matches the given ID.

Only users with "Manage Pricing Plans" permissions can get plans.

Method Declaration
Copy
Method Parameters
idstringRequired

The ID of the plan to get.

Returns
Return Type:Promise<Plan>
Errors

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

Did this help?