#ibgoldbergs-subscriptions

1 messages ยท Page 1 of 1 (latest)

digital flareBOT
south hinge
#

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

hasty meadow
#

Trying to figure out how to find the request ID in the new workbench UI ๐Ÿ™‚

#

req_PfOFNmGKnqjIgz

south hinge
#

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

hasty meadow
#

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.

south hinge
#

That is the length of your coupon

hasty meadow
#

Oh okay that makes sense then

#

Going to deploy a version of this and see if it works out

south hinge
#

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

hasty meadow
#

Oh I guess that brings up another question...

#

Does a coupon start during the trial? or once it moves to an active subscription?

south hinge
#

It starts when added to the object

#

In terms of the duration

hasty meadow
#

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

south hinge
#

Correct

hasty meadow
#

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

south hinge
#

๐Ÿ‘

hasty meadow
#

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

digital flareBOT