#Chen - Subscription Trial

1 messages ยท Page 1 of 1 (latest)

round loom
#

Hi ๐Ÿ‘‹

verbal dagger
#

Hi!

round loom
#

Hmmm... Yeah I am kind of confused by that error message. However I suspect it isn't liking the combination of when your trial ends and your billing cycle is anchored.

verbal dagger
#

I tried to move the billing anchor to be before and after the trial_end date, but neither worked

round loom
#

What happens if you don't set it at all?

verbal dagger
#

Only using trial_end with the same value fails with the same error too

#

If I use a much later time, it works

round loom
#

So you're looking to create a 5 day free-trial period?

verbal dagger
#

let's start with that

round loom
#

Well that's what your initial timestamp worked out to. May 1, 2022

verbal dagger
#

yea

round loom
#

Question: can you try using trial_period_days and specifying 5 instead?

verbal dagger
#

cool this one works

round loom
#

๐Ÿ‘

verbal dagger
#

I'm also trying to do the update subscription call, which only has trial_end field

round loom
#

So you want to add a free trial to an existing subscription?

verbal dagger
#

yes

round loom
#

Okay and is it a similarly short trial

#

?

verbal dagger
#

What I need is actually 30+ day trial, but I want to understand this error better in case the requirement changes.

round loom
#

Fair.

#

Wait wait wait. This might seem silly but can you try wrapping the timestamp in quotes?

verbal dagger
#

Oh! I think I found out what's wrong ๐Ÿคฆโ€โ™‚๏ธ I had a test clock on this customer, and the clock time is later than May 1st.

round loom
#

Oh oh oh!

verbal dagger
#

Thanks for helping look into this.

round loom
#

So, in Stripe's understanding, they are already in the future!

verbal dagger
#

yes ๐Ÿ˜„

round loom
#

Well I'm glad that clears things up