Archives a single plan.
The archivePlan()
function returns a Promise that resolves to the newly-archived plan.
When a plan is archived, the plan
public
property is automatically set to false
.Plan archiving does not impact existing purchases made for the plan. All purchases for the plan are still active and keep their payment options and terms.
Site owners can see archived plans in the Dashboard under Pricing Plans -> Archived Plans.
Note: An attempt to archive an already-archived plan throws an error.
You can only call this method when authenticated as a Wix app or Wix user identity.
ID of the active plan to archive.