#gabor

1 messages · Page 1 of 1 (latest)

marsh veldtBOT
olive pulsar
#

Hello!

  1. You can do that, sure.
  2. Probably, yes.
  3. Yes.
  4. Not sure I understand this question, can you provide more details?
  5. After release it will continue on based on the final phase of the Schedule.
glacial shell
#

Hi @olive pulsar, thank you!

I mean, I'd like to increase the number of free months by one when a successful referral was made. I guess the way of doing this is to retrieve the schedule for the subscription, find the phase that is for the free "reward" period, and increment the iterations value by one. I'm not sure how to target this phase.

#

When I create the schedule from the existing, active subscription, and add the reward phase to the schedule, I assume there will be two phases initially: the current, paid phase, and the upcoming free phase (this includes a 100% off coupon by the way).

olive pulsar
#

Using Subscription Schedules will also work, but will be more complex. If trial_end adjustments work for your use case I would recommend that as a simpler approach.

glacial shell
#

Thanks for the tip, I am going to look at the trial way. But I would still like to try the subscription schedules solution with coupons, because it seems just like what wee need.

brisk bramble
#

note that this metadata changes the subscription metadata when the phases are applied

glacial shell
#

Oh, that seems nice. So, that would make it possible to target the phase easily.

brisk bramble
#

I would expect so, yes

glacial shell
#

I am not using subscription metadata currently, so it might not be a problem.

brisk bramble
#

right so say you set metadata[phase_type]=reward on that phase, this would be applied to the subscription when that phase starts. you might want to configure metadata[phase_type]=paid or similar after the reward phase so the subscription reflects that the reward phase has ended (if that matters to you)

glacial shell
#

That sound good, thank you!

#
  1. After release it will continue on based on the final phase of the Schedule.

Is it best to copy the current subscription properties as the final phase?

#

…when creating the schedule

brisk bramble
#

That's up to you, if you want it to go back to the way it was, then yes

glacial shell
#

Yes, I meant if I want to go back to the original paid subscription after the reward period is over. Thanks!

#

Thank you again for your help @brisk bramble and @olive pulsar, this was very useful!

brisk bramble
#

you're welcome!