#Jeffrey-subscriptions
1 messages · Page 1 of 1 (latest)
Hi there!
When you create the subscription schedule I think you should directly get in the response the subscription ID in the subscription property https://stripe.com/docs/api/subscription_schedules/object?lang=node#subscription_schedule_object-subscription
Hey, thank you for the fast reply.
yes in the response is the sub_sched_1LAVzdD2p4ov5QvNIg5FcoJ9 but when it gets converted into the final sub it looks like this: sub_1LAW4AD2p4ov5QvNcLLZatfH
Oh, I see what you mean. Give me a few minutes to look into this.
So you will get a few webhook events when the subscription is created: subscription_schedule.updated, customer.subscription.created, and invoice.created.
And when that happens, the subscription schedule object will have a subscription property with the subscription ID.
Thank you for the hint, I check subscription_schedule.updated webhook event but cannot see the subscription id in the event
Can you share the evt_xxx ID?
This ID?
evt_1LAWabD2p4ov5QvNpscCzKcb
Thanks, taking a look
Hmm, that's not a subscription_schedule.updated event
At this point the subscription is released from the schedule, so its expected that subscription field be null
sorry for that this is the updated event
evt_1LAWaaD2p4ov5QvN8v9quYZr
The same issue really, the subscription is released at that point so its no longer controller by the schedule
What is it you're trying to do exactly?
We need the subscription id so our customer can press our cancel button, but the sub_sched_ is not longer working because it gets exchanged with the new sub ID