Creates a pricing plan. The specified plan
object must contain a pricing model. A pricing model can be 1 of the following:
You can only call this method when authenticated as a Wix app or Wix user identity.
function createPlan(plan: Plan): Promise<Plan>;
Information for the plan being created.
import { plans } from "@wix/pricing-plans";
async function createPlan(plan) {
const response = await plans.createPlan(plan);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.