API v1: Subscription Plans
Just as accounts are uniquely identified by an account code, subscription plans are identified by a unique plan code.
The pricing and interval times are versioned for subscription plans. When the pricing or duration is altered, existing subscribers will retain their current subscription plans by default.
Subscription plans can be modified through the web interface. The API exposes subscription plan information for read-only purposes.
API v1 is deprecated. Please see our latest documentation.
Plan Attributes
- plan_code
- name
- description
- success_url
- cancel_url
- created_at
- unit_amount_in_cents
- setup_fee_in_cents
- plan_interval_length
- plan_interval_unit
- trial_interval_length
- trial_interval_unit
- Your unique reference code for the Subscription Plan
- Plan name
- Your description of the subscription plan. Not displayed to end users
- The URL to redirect to after a successful subscription signup
- The URL to redirect to if the user aborts the signup process
- Date the credit was created
- The default price per unit for the plan in cents. Divide by 100 to convert to dollars.
- The default setup fee for the plan in cents. Divide by 100 to convert to dollars.
- Amount of time (in days or months) before the subscriber is charged again.
- Indicates whether the plan interval length is specified as 'days' or 'months'
- Trial length. Zero (0) indicates there is no trial -- the subscription begins immediately
- Indicates whether the trial interval length is specified as 'days' or 'months'
List Plans
GET/plans
Lists all your active subscription plans.
Code examples
PHP
1 | $plan = RecurlyPlan::getPlans(); |
Ruby
1 | plans = Recurly::Plan.find(:all) |
Python
1 | plan = recurly.company.plans() |
Get Subscription Plan Details
GET/plans/:plan_code
Return the specifics for a given subscription plan.
Code examples
PHP
1 | $plan = RecurlyPlan::getPlan(PLAN_CODE); |
C#
1 | RecurlyPlan plan = RecurlyPlan.Get(planCode); |
Create a Plan
Please use API v2.
Update a Plan
Please use API v2.
Delete a Plan
Please use API v2.
