Plugin Subscription Plans

Copy plugin subscription plan

POST
http://localhost:3000/api/plugin-plans/copy

Body

application/json
sourcePlanIdstringrequired

Source plan ID to copy from

newNamestringrequired

New plan name

newDescriptionstring

New plan description

newPricenumber

New plan price

Response

Plugin subscription plan copied successfully

Response fields application/json
deletedAtstring<date-time>
Example
2018-11-21T06:20:32.232Z
createdAtstring<date-time>

The creation timestamp of the entity.

Example
2018-11-21T06:20:32.232Z
updatedAtstring<date-time>

The last update timestamp of the entity.

Example
2018-11-21T06:20:32.232Z
idstring
isActivebooleantrue

Whether the plan is active and available for purchase

isArchivedbooleanfalse
archivedAtstring<date-time>
Example
2018-11-21T06:20:32.232Z
namestringrequired

Plan name

descriptionstring

Plan description

typestringfreetrialbasicpremiumenterprisecustomrequired

Subscription type/plan level

pricenumberrequired

Plan price

currencystringrequired

Currency code (e.g., USD, EUR)

billingPeriodstringdailyweeklymonthlyquarterlyyearlyone-timerequired

Billing period

featuresArray<string>required

Plan features list

limitationsobject

Plan limitations and quotas

isPopularboolean

Whether this plan is marked as popular

isRecommendedboolean

Whether this plan is recommended

trialDaysnumber

Trial period duration in days

setupFeenumber

Setup fee for the plan

discountPercentagenumber

Discount percentage for the plan

metadatastring

Plan metadata (JSON string)

sortOrdernumber

Sort order for displaying plans

pluginIdstringrequired

Plugin ID

createdByIdstring

User who created this plan

subscriptionsArray<string>

Subscriptions using this plan

Copyright © 2023-Present Ever Co. LTD.Docs by Sourcey