#Chen - Subscription Trial
1 messages ยท Page 1 of 1 (latest)
Hi!
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.
I tried to move the billing anchor to be before and after the trial_end date, but neither worked
What happens if you don't set it at all?
Using the two fields together was mentioned in the doc here: https://stripe.com/docs/billing/subscriptions/trials#combine-trial-anchor
Only using trial_end with the same value fails with the same error too
If I use a much later time, it works
So you're looking to create a 5 day free-trial period?
let's start with that
Well that's what your initial timestamp worked out to. May 1, 2022
yea
Question: can you try using trial_period_days and specifying 5 instead?
cool this one works
๐
I'm also trying to do the update subscription call, which only has trial_end field
So you want to add a free trial to an existing subscription?
yes
What I need is actually 30+ day trial, but I want to understand this error better in case the requirement changes.
Fair.
Wait wait wait. This might seem silly but can you try wrapping the timestamp in quotes?
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.
Oh oh oh!
Thanks for helping look into this.
So, in Stripe's understanding, they are already in the future!
yes ๐
Well I'm glad that clears things up