#ibgoldbergs-subscriptions
1 messages ยท Page 1 of 1 (latest)
Hello
Good question.
Can you provide me a request ID for the failed request so I can see exactly what you are doing?
I do think setting subscription_trial_end === NOW is the right thing to do though to simulate the amount
Trying to figure out how to find the request ID in the new workbench UI ๐
req_PfOFNmGKnqjIgz
Thanks! Taking a look
Yep okay so as long as the trial period will be within the 12 months of the coupon duration then setting subscription_trial_end === NOW on this request is the best way to handle this preview
Where does the 12 months come from? Seems a bit odd that its limited to 12 months, because a trial max duration is 24 months.
That is the length of your coupon
Oh okay that makes sense then
Going to deploy a version of this and see if it works out
So it wouldn't be an accurate preview if the trial will end after the coupon ended
Sounds good, let us know if it doesn't
Oh I guess that brings up another question...
Does a coupon start during the trial? or once it moves to an active subscription?
OK, however...
If we are creating a separate phase on the subscription schedule for when the trial ends, and only applying the coupon to that second phase, then it would not start until that point
Correct
Cool. It gets complex pretty quick when we apply a lot of custom business logic to a payment flow. I'll be back in touch with the results from testing setting subscription_trial_end === NOW
๐
Just to go back to the coupon question... Is it even possible to add a coupon as part of a phase? I don't see anything in the API the indicates this