put https://api.rainex.io/projects//subscriptions/
Updates current term ends date of a subscription with the specified id
Here are the enums that are contained in the answer:
name | value |
---|---|
status | Future, InTrial, Active, NonRenewing, Paused, Cancel, Deleted, PendingPayment |
billingCycles | Forever, Fixed |
discounts[type] | FixedAmount, Percentage |
discounts[applyOn] | InvoiceAmount, SpecificItemPrice |
discounts[durationType] | OneTime, Forever |
items[status] | Active |
items[chargeOnEvent] | SubscriptionCreation, SubscriptionActivation, Immediately |
Error codes:
NotFound | A subscription with such an Id cannot be found |
PlanItemPriceNotFound | There is no plan with any of ids specified in “items” array |
ItemPricesNotFound | some of ids in “items” array belong to product family item prices that cannot be found, or “discounts” array contains product family item prices that are not listed in “items” array |
ItemPricesHasDifferentPricingModel | pricing model of some of the product family item prices is different from the pricing model specified in the request |