Updates a pricing plan. Updating a plan doesn't impact existing orders made for the plan. All orders keep the details of the original plan that was active at the time of purchase.
You can only call this method when authenticated as a Wix app or Wix user identity.
function updatePlan(_id: string, plan: UpdatePlan): Promise<Plan>;
ID of the plan to update.
import { plans } from "@wix/pricing-plans";
async function updatePlan(id, plan) {
const response = await plans.updatePlan(id, plan);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.