Before creating subscriptions, you must create a plan in the Control Panel. Plans cannot be created, updated, or deleted via the API. However, you can retrieve existing plans via the API. A plan is a template for your subscriptions: when you create a plan, it will be used to populate the following attributes when a new subscription is created:
billing day of month
number of billing cycles
You will need to specify the
plan_id when creating a subscription.
Add-ons and discounts are created in the Control Panel. You cannot create or update them through the API.
Add-ons and discounts can be applied manually on a case-by-case basis, or you can associate them with certain plans to apply them automatically to new subscriptions. When creating a subscription, it will automatically inherit any add-ons and/or discounts associated with the plan. You can override those details at the time you create or update the subscription.
When creating an add-on or discount you can specify: