v1
latestOpenAPI 3.0.32026-07-1336286494.8 KBPath parameters
The ID of the subscription which will have its plans switched.
Request body
The new plan to switch to.
The invoicing behavior to use when replacing the plan. Invoice now will invoice the customer for the prorated difference of the old plan and the new plan, whereas add_to_next_invoice will wait until the end of the subscription to do the calculation.
- add_to_next_invoice - Add to Next Invoice
- invoice_now - Invoice Now
The usage behavior to use when replacing the plan. Transfer to new subscription will transfer the usage from the old subscription to the new subscription, whereas keep_separate will reset the usage to 0 for the new subscription, while keeping the old usage on the old subscription and charging for that appropriately at the end of the month.
- transfer_to_new_subscription - Transfer to New Subscription
- keep_separate - Keep Separate
Response
The time the subscription starts. This will be a string in yyyy-mm-dd HH:mm:ss format in UTC time.
The time the subscription starts. This will be a string in yyyy-mm-dd HH:mm:ss format in UTC time.
Whether the subscription automatically renews. Defaults to true.
Whether this subscription came from a renewal or from a first-time. Defaults to true on creation.