Recurring Billing
Update Subscription Plan
Use this API to update the subscription plan, changes made to the plan will not affect current subscription. If you would like to make changes to the current subscriptions use the Update Recurring Billing API.
PUT
/
v1
/
subscription-plan
/
{plan_id}
Headers
X-BUSINESS-API-KEY
string
requiredPath Parameters
plan_id
string
requiredBody
application/json
name
string
requiredPlan name. It's optional field
description
string
The description of subscription plan. It's optional field
amount
number
Plan amount. It's optional field
cycle
string
requiredBilling frequency (weekly / monthly / yearly / custom / save_card). If cycle = custom then the user has to send the fields cycle_repeat and cycle_frequency
cycle_repeat
integer
It's required field if cycle is custom
cycle_frequency
string
It's required field if cycle is custom. Options: [day, week, month, year]
reference
string
Arbitrary reference number that you can map to your internal reference number. It's optional field
redirect_url
string
Redirect URL
Response
200 - application/json
id
string
name
string
description
string
cycle
string
cycle_repeat
any
cycle_frequency
any
currency
string
amount
number
default: 0reference
string
created_at
string
updated_at
string
Was this page helpful?