#Joshua S
1 messages ยท Page 1 of 1 (latest)
Hello! Can you share the Invoice ID so we can take a look?
Sure! in_1MftFdGxfbdKdMxzlg51UhDr
I just noticed that my webhook endpoint is failing - maybe related?
Yes, that's almost certainly related - let me double check though
Yup, the webhook endpoint (you have two that are failing) is the issue
We wait for a successful response from all webhook endpoints that listen for the invoice.created event, otherwise we wait for 72 hours before finalizing the invoice
OK - so the charge isn't going through then
Once I fix the webhooks, can I replay all of the pending ones?
Is this documented somewhere? This seemed quite mysterious to me today ๐
It's not super well documented, but we mention it here (https://stripe.com/docs/billing/subscriptions/overview#subscription-events) next to the invoice.created event
And yes, you should be able to replay all the pending events, but we'll also automatically retry those events (in live mode we retry up to 3 days)
Cool thanks!
how can I replay all the webhooks at once?
There isn't a single command that will replay all your pending webhook endpoints
Ah. can I do it via the API then?
The way to do it would be to retrieve all your webhook events through the API (https://stripe.com/docs/api/events/list) and then resend each one
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Sorry I didn't clarify - you'd need to use the API to retrieve all those events, and then you'd use the CLI tool to resend them
(but really, if it's not super urgent I'd suggest waiting on the events to be automatically resent by us)
OK. It is a bit of a problem because charges are supposed to happen today. I'll see about using the CLI, thanks
You could also just finalize the Invoices yourself through the API
Ah, that sounds like the best option. That should still work with my webhook logic
They should charge the default payment method at that time, correct?
Or after some delay? I finalized them and now see they are past due
It depends on the collection_method of the Invoice - we won't charge the default payment method if it's send_invoice
Ah, that would be it I guess
Yeah if you're using send_invoice then instead of finalizing you can also just use the https://stripe.com/docs/api/invoices/send api to send the invoice to your customers so they can pay
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Doh my bad. I had left that from a previous implementation
I can still charge them though right?
If you're asking whether you can still charge them automatically w/o having them re-enter payment details the answer is yes as long as they already have a default payment method - but you'll either need to change the collection_method: charge_automatically so we know to charge it, or you can use the pay endpoint https://stripe.com/docs/api/invoices/pay)
Yeah, I mean from now on, invoices should be generated correctly