#ironbeard-subscription

1 messages ยท Page 1 of 1 (latest)

tropic nebula
#

Hello!

south crater
#

heyo ๐Ÿ™‚

#

I know that once I have the SubscriptionSchedule, I would send a modify call with both items listed as the first phase that ends on the billing date..but what is the end_date of the second phase, which only contains "Foo"?

tropic nebula
#

After generating the Subscription Schedule with both prices you should update them to have an additional phase with ONLY the "foo" price.

So you'd end up with:

  • An initial phase for one year with both prices
  • A phase after that, with only the "foo" price. The end_date could be whatever you want as long as your schedule is set to "Release" after it's over.
#

Once the Schedule has been released after the second phase is over itll just continue in that configuration

south crater
#

Ah, gotcha. More generally, since what I'm trying to do is implement somethng similar to "cancel_at_period_end" option for SubscriptionItems, would I just have my initial phase be all prices associated with the subscription and then the phase after that would contain all prices except the one that I'm trying to "cancel_at_period_end"? And instead of specifying end_date, I suppose I could just do iterations=1?

tropic nebula
#

Yup!

south crater
#

cool cool, thanks!

#

If I schedule is created for a Subscription and then released, will that SubscriptionSchedule ID still be valid, or would I need to run another from_subscription call?

tropic nebula
#

You'd need to run another from_subscription call

south crater
#

should be good for now, thanks!

south crater
#

Would I want my end_date of the first phase (that has all items) to be EQUAL to the billing date? or, e.g., one day less? I wouldn't want them to be billed for one day of the things they were trying to cancel, if that makes sense

tropic nebula
#

If you created the Subscription Schedule using from_subscription, I believe we default to setting the first phase to be the length of one billing cycle. If the end_date is exactly the same as the billing cycle date, then they should only be seeing both items billed for in the first cycle

south crater
#

Yeah, that tracks with what I've seen. Thanks ๐Ÿ™‚