#voidmonk_webhooks

1 messages ¡ Page 1 of 1 (latest)

sage tulipBOT
#

👋 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/1415226659690512486

📝 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.

celest belfry
#

Note: previously, on InvoicePaymentFailed webhook event, the invoice.SubscriptionId was empty for prorated upgrade payment retry failure, but SubscriptionId had value for normal subscription recurring payment failure.

signal ember
#

Hello! do give me some time to take a look at this

#

Is your question, why the payload generated from an invoice.payment_failed event, did not consist of the Subscription_id as one of it's fields?

#

Could you give me an example event for this? It should have the prefix evt_

celest belfry
#

I'm at dev stage of API migration so I don't have live event. Before Stripe API v48 (basil) breaking changes, the InvoicePaymentFailed webhook event had a invoice.SubscriptionId value if the invoice was for a subscription payment, or it was empty if the invoice was for one-off payment or prorated upgrade. Now there's no SubscriptionId/Subscription available in invoice or other related object to find this out.

signal ember
#

Can i get the previous version that you were on?

celest belfry
#

previous version was 47.3.0

#

thanks, that link clears it!

signal ember
#

NP! To access the subscription you now have to use the mapping of invoice.parent.subscription_details.subscription