#mtanzi-sub-anchor
1 messages ยท Page 1 of 1 (latest)
hello, reading one sec
you're trying to anchor the Subscription beyond its next billing date, which won't work right, you can only update anchor b/w now and the next recurring cycle
looking at the data from chargebee the nextbilling date is chargebee_subscription.current_term_end
The data that is in the error is a couple of hour before
Time.at 1651333793
=> "2022-04-30T17:49:53.000+02:00"
but I don't know where this date is coming from
stepping away, a colleague will be helping out in a bit
thanks..
Hi ๐ I'm stepping in
Hi!
Do you have an ID for this request?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
So it appears to me that the back-dated start date combined with the per month price is creating a situation where the next billing cycle will start sooner than you want to set the billing cycle anchor. This is where the 1651333793 is coming from. Given how close they are I suspect there may be some rounding issue with the timestamps
mm that's around 5 hours
the thing is only some of the subscriptions are failing with this issue
and the data I pass is just take from chargebee and used in stripe... I am assuming is correct
what would you suggest I should do to solve this issue?
Well for starters we do not recommend recurring monthly billing at the end of the month. When February comes around it will move the date to the 28th and leave it there. The 1st of the month is a better option in general.
My second question is why you need to update the billing cycle anchor to a new date if it already is basically a match for when the next billing cycle will start
one interesting thing is that the time sent by stripe (1651333793) is exactly 1month from the time I run the migration
run the migration
What do you mean by that?
no nevermind..
the migration run today at "2022-03-31T15:49:52.50Z"
Well for starters we do not recommend recurring monthly billing at the end of the month.
we don't do at the end of the month... it happen by chance that now was at the end
Okay
we just take the data from chargebee and put into stripe ๐
the monthly it's calculated depending on the product
Okay so it appears there is a 5 hour gap between when the next billing cycle will occur and when you are trying to set the billing cycle anchor, you are trying to replicate the identical data as is currently in Chargebee and this conflict is preventing that. Do I have that correct?
Okay .... Hmmmm
Hi there ๐ apologies for the delay here, just wanted to confirm that you're still struggling with this?