#Greggles
1 messages · Page 1 of 1 (latest)
hello! the subscription will be created when it's scheduled to be created. Yes, there is a webhook that's triggered customer.subscription.created
you'd probably want to take a look at https://stripe.com/docs/billing/subscriptions/webhooks
Hey, thank you.
Is there a way to correlate the subscription ID that is sent via the webhook to the schedule which creates it?
you can find it on the Subscription object : https://stripe.com/docs/api/subscriptions/object#subscription_object-schedule
It doesn't look like the sub_sched ID is present in the subscription object.
can you share the subscription id?
This may be a Catch-22 situation, unfortunately. I'm having to convert subscriptions in our system that were created with manually billed Stripe invoices as the payment source (not my doing) . My thinking is that we can create future Stripe subscriptions set to start on the date a manually billed subscription is set to renew but what is issued is a sub_sched ID with a status of not started. When the subscription starts and the sub_id is issued via the webhook I wanted to correlate it with the schedule it came from. We have accounts with multiple subscriptions and the same customer ID.
Sorry for the novel 😦
i don't see how this is a catch-22 situation though
if you have a Subscription Schedule, the corresponding Subscription should have the schedule id
if you share the subscription id, or subscription schedule id i can take a look
I have 3 subscription schedules set for the end of this year. They were previously sent invoices manually, one at a time. There's no subscription ID associated with them. Sorry if this is not making sense.
they have no subscription id associated with them because the subscriptions haven't been created yet
in case you haven't seen this yet, you can use test clocks to mimic the passing of time : https://stripe.com/docs/billing/testing/test-clocks