Update a Plan
POST /api/v1/plans/update
Description
Updates an existing pricing plan’s details, such as price, duration, status, etc.
Header
api_key
string
required
API authentication key
Body
id
string
required
ID of the plan to update
name
string
optional
Name of the pricing plan
price
float
optional
Price of the plan
trial_duration
int
optional
Duration of the trial period (Must not be more than 1 year)
trial_period_unit
string
optional
Unit of trial duration (Day, Week, Month, Year)
renewal_period
int
optional
Number of units before renewal (Must not be more than 1 year)
renewal_period_unit
string
optional
Unit for renewal period (Day, Week, Month, Year)
shuffle_key
boolean
optional
Whether the license key can be shuffled for users
currency
string
optional
Currency code
(USD, SGD, AUD, CAD, CNY, EUR, GBP, HKD, IDR, INR, JPY, KRW, MYR, NOK, THB, TWD, VND)
stocks
int
optional
Number of stocks
password
string
optional
Protect the checkout page with a password
pricing_type
string
optional
"One-time Fee", "Subscription" or "Free"
(For subscription, renewal_period and renewal_period_unit must be given)
initial_fee
float
optional
Additional One-time fee at checkout