#sandip.b.fst

1 messages · Page 1 of 1 (latest)

pallid gardenBOT
lone bramble
#

Hello! Per the API ref:

If the subscription was canceled with cancel_at_period_end, canceled_at will reflect the time of the most recent update request, not the end of the subscription period when the subscription is automatically moved to a canceled state.

shadow anchor
#

And how it possible created & canceled_at is same ?
Do I'm missing something ?

lone bramble
#

I explained why above

shadow anchor
#

Okay, Please provide some information about this behaviour

lone bramble
#

I'm not sure what else I can provide on top of what I've already shared. What is unclear?

#

You created a schedule (https://dashboard.stripe.com/test/logs/req_GSCUwcaYqtNtXz) and set end_behavior: 'cancel'. That means that at the end of the defined phases on the schedule, the underlying subscription will be automatically cancelled. In effect, that is a request to cancel the subscription so canceled_at is set to the time of the request

#

When the subscription actually cancels, canceled_at timestamp will update to reflect the time of actual cancellation

shadow anchor
#
end_behavior: 'cancel'. That means that at the end of the defined phases on the schedule, the underlying subscription will be automatically cancelled. In effect, that is a request to cancel the subscription so canceled_at is set to the time of the request

how is this request to cancel subscription!!!!

lone bramble
shadow anchor
#

but subscription just created and all schedule phases are pending not any of phase (schedule payment) is canceled.
but in subscripion its showing that subscripion was canceled when it was created.
Sorry still I didn't understand this behaviour.

lone bramble
#

Not sure how else I can explain it. You set the schedule to cancel the underlying subscription which in effect sets canceled_at

#

That's jsut how the API works, you need to adjust your integration to expect that

shadow anchor
#

Means if in subscription canceled_at is set that does not mean it is canceled. right?

lone bramble
#

Yes exactly

#

canceled_at will initially be set to the timestamp of when it will cancel (i.e. at the end of the configured phases)

shadow anchor
#

okay, I got it.
Thank you for the quick support.

pallid gardenBOT
shadow anchor
#

when a schedule with end_behaviour:'release' is ends at that do I receive any hook for subscripion update like customer.subscripion.deleted or customer.subscripion.updated;

fallow trellis
#

you get a customer.subscripion.updated and a subscription_schedule.updated

shadow anchor
#

okay.