#v_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/1501470365128331284
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
This is expected due to the difference in API versions of the Webhook endpoints on production and test accounts.
The API version of the Webhook endpoints in production and test are as follows based on the events you shared:
- Production: 2012-10-26
- Test: 2025-07-30.basil
Since API version 2025-03-31.basil, Stripe removes invoice field from the Charge object: https://docs.stripe.com/changelog/basil/2025-03-31/add-support-for-multiple-partial-payments-on-invoices
Could you share what you're trying to achieve, so that I can share the relevant solution?
If you're looking for getting the invoice associated for the charge from charge.refunded event, I'd recommend using List Invoice Payments by Payment Intent, which the Payment Intent can be obtained from the charge.refunded event: https://docs.stripe.com/api/invoice-payment/list?api-version=2025-03-31.basil#list_invoice_payments-payment-payment_intent
basically we have a invoice schema on our side where we maintain a list of invoices for our patients, and i want to update its status to refunded if the charge was reversed or refunded on stripe for more accurate info