POST

Create Plan


Creates a plan with specified billing terms and a pricing strategy.

To create the most common types of plans:

  • One-time: Specify a billingCycle that's the desired duration and set endType to CYCLES_COMPLETED and cyclesCompletedDetails.billingCycleCount to 1.
  • Recurring: Define the recurrence rule using the plan's billingCycle object.
  • Free plan: Set the plan's flatRate.amount to 0 and maxPurchasesPerBuyer to 1.
Authentication

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

Permissions
Manage Pricing Plans
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/pricing-plans/v3/plans

Errors
400Invalid Argument

There are 9 errors with this status code.

404Not Found

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?