#dick-flair_webhooks

1 messages ยท Page 1 of 1 (latest)

calm pondBOT
#

๐Ÿ‘‹ 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.

cold zenith
#

hi there!

daring pebble
#

Hi again soma,

Request log for subscription schedule creation:
req_r6JAu5SJyuyrnb

request log for sub schedule update:
req_nzb6najI7teldT

cold zenith
#

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?

daring pebble
#

I thought this would have been a part of the schedule update but is it different to that?

cold zenith
#

when you update a schedule, you should receive a subscription_schedule.updated

daring pebble
#

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

cold zenith
#

I thought this would have been subscription_schedule.released
that would only happen when all the phases of the schedule ended

daring pebble
#

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

cold zenith
#

can you share the Subscription ID (sub_xxx)?

daring pebble
#

Sure, its sub_1QURc5DvmqvcAnANYDianWxk

cold zenith
#

the schedule status is still active, and not released. can you try advancing the time by one month and see if it get released?

daring pebble
#

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

cold zenith
#

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, a customer.subscription.updated would make more sense for this.

daring pebble
#

Yeah, I see. Ok great. I'll just use that webhook instead. Thanks again for the help ๐Ÿ™‚