#dick-flair_webhooks
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1316001327133753406
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- dick-flair_best-practices, 16 minutes ago, 32 messages
- dick-flair_api, 6 days ago, 7 messages
hi there!
Hi again soma,
Request log for subscription schedule creation:
req_r6JAu5SJyuyrnb
request log for sub schedule update:
req_nzb6najI7teldT
having a look
customer.subscription.pending_updated_applied would be sent if you created a pending update. did you create one? if so, can you share the request ID?
I thought this would have been a part of the schedule update but is it different to that?
a pending update is a very specific type of update, that isn't available to subscription schedule. you can learn more about this here: https://docs.stripe.com/billing/subscriptions/pending-updates
when you update a schedule, you should receive a subscription_schedule.updated
I'm mostly after the action of when the subscription_schedule update gets applied to the subscription. I thought this would have been subscription_schedule.released since the end behaviour of my subscription schedule is release but I don't seem to be getting this through, and event is set. I'm just testing it again now, I've just added .completed to see if that is triggered
I thought this would have been subscription_schedule.released
that would only happen when all the phases of the schedule ended
I've just created a simulated customer/subscription and hooked that up against my DB. I have a monthly subscription, the first cycle being from 10/12/2024 to 10/01/2025. I then initiated a downgrade to decrease the quantity to 4 and I gave this the start_date of 10/01/2025 (when the current cycle ends) . I advance the time to 11/01/2025, and this correctly updates the subscription but no webhook comes through for either subscription_schedule.completed or .released
can you share the Subscription ID (sub_xxx)?
Sure, its sub_1QURc5DvmqvcAnANYDianWxk
the schedule status is still active, and not released. can you try advancing the time by one month and see if it get released?
Oh yes, that has come through now. I see, so it gets released a month after it starts? or I guess on a specific date I set but I guess it would be odd to set it an end date? As this is just basically a monthly rolling subscription where it just had been downgraded
So am I better off just detecting a subscription update instead to update what I need in my DB as this doesn't seem to line up with the sub schedule hooks. The goal is to update the quantity in my DB if the one in the subscription gets updated
I see, so it gets released a month after it starts?
it gets released when the last phases ends. for a monthly subscriptions, it makes sense to be one month after the beginning of the phase (assuming the phase has a single iteration)
So am I better off just detecting a subscription update instead to update what I need in my DB as this doesn't seem to line up with the sub schedule hooks. The goal is to update the quantity in my DB if the one in the subscription gets updated
yes, acustomer.subscription.updatedwould make more sense for this.
Yeah, I see. Ok great. I'll just use that webhook instead. Thanks again for the help ๐