#Jordy

1 messages · Page 1 of 1 (latest)

proven oarBOT
granite abyss
#

Response body
{
"error": {
"message": "Trial end (1677771724) cannot be after billing_cycle_anchor (1676559945). Consider ending the trial (trial_end=now).",
"param": "billing_cycle_anchor",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_g2kq41Rsrp6ubH?t=1676559944",
"type": "invalid_request_error"
}
}

#

hey bismarck

stray axle
#

Hey there

#

A trial end will set the billing_cycle_anchor

#

So you don't really need to be using both

#

That is an odd error message though

#

But yeah you want to just use trial_end: now instead of billing_cycle_anchor: now

granite abyss
#

OK, that did clear when I removed like you said but it still says I'm on the trial plan when I look at the customer in stripe

#

Customer ID: cus_NMsQzDWaHXqDqj

#

I'm using the following parameters: cancel_at_period_end, proration_behavior,items id, item_price, trial end

stray axle
#

Looking

#

Yeah you didn't seet trial_end: now

granite abyss
#

Ok, I'll check that

#

That did it . Thank you for your help bismarck

#

Is there a webhook I should listen for that lets me know a subscription is going to be canceled? At the moment it seems you only get that info at the period end

harsh herald
#

Hi there. customer.subscription.deleted is sent when a subscription is cancelled

#

There's not one that's sent as a warning ahead of time

granite abyss
#

But what about how it shows that a customer is cancelling at the end of the period when you are on the specific customer's page in stripe?

#

Is it possible to send that information?