Idempotency SupportedBatch
Try in API ExplorerCreates a ramp for a subscription.
Note
- Subscription status: You cannot create ramps for subscriptions in the
pausedorcancelledstatus. - Advance invoice: You cannot create ramps for subscriptions that have an advance invoice schedule.
- Upcoming ramps limit: A subscription can have a maximum of 12 upcoming ramps at any given time, excluding deleted ramps. Upcoming ramps are ramps with
statusasscheduled. - Total ramps limit: A subscription can have a maximum of 100 ramps at any given time, excluding deleted ramps.
- You cannot create a ramp for subscription, when ramps are in draft status.
Sample Request
URL Format
POST https://[site].chargebee.com/api/v2/subscriptions/{subscription-id}/create_ramp
Input Parameters
required, timestamp(UTC) in seconds
The time when this ramp takes effect.
Caution
- Ensure the time is within five years from the current time.
- Ensure there is a minimum 24-hour interval between
effective_fromof two consecutive ramps. - If the subscription is scheduled to be paused or canceled in the future, ensure the time is not on or after
pause_dateorcancelled_at.
optional, string, max chars=250
A brief summary of the pricing changes applied with this ramp.
optional, string, max chars=100
List of coupons removed from the subscription through this ramp.
Caution Ensure this list does not include:
- Coupons being added through this ramp.
- Coupons already removed by a previous ramp.
optional, string, max chars=100
List of discounts removed from the subscription through this ramp.
Caution Ensure this list does not include discounts already removed by a previous ramp.
optional, string, max chars=100
List of item prices removed from the subscription through this ramp.
Caution Ensure this list does not include:
- Item prices being added or updated through this ramp.
- Item prices already removed by a previous ramp.
Parameters for items_to_add. Multiple items_to_add can be passed by specifying unique indices.
pass parameters as
items_to_add[<param name>][<idx:0..n>]Parameters for items_to_update. Multiple items_to_update can be passed by specifying unique indices.
pass parameters as
items_to_update[<param name>][<idx:0..n>]Parameters for item_tiers. Multiple item_tiers can be passed by specifying unique indices.
pass parameters as
item_tiers[<param name>][<idx:0..n>]Parameters for coupons_to_add. Multiple coupons_to_add can be passed by specifying unique indices.
pass parameters as
coupons_to_add[<param name>][<idx:0..n>]Returns
rampRamp object
Resource object representing ramp