#ctodan
1 messages ยท Page 1 of 1 (latest)
basically want to resend all invoice.paid events over the last day
it wasnt handled by our webhook
Hello ๐
You could use Stripe CLI
https://stripe.com/docs/cli/events/resend
Oh not sure if there's a way to resend "all"
its only about <100 events so could do it manually
would this send to a webhook that wasnt previously handling this type of event
Yes, you can also specify the webhook endpoint
https://stripe.com/docs/cli/events/resend#events_resend-webhook-endpoint
i think i have to specify the webhook endpoint right?
"Resend an event to the CLI's local webhook endpoint. You must pass --webhook-endpoint=we_123456 to resend the event to a specific webhook endpoint. You can only resend events that have been created within the last 30 days."
Yes
Also, Stripe attempts to deliver events upto 3 days if the delivery failed. So no need to resend manually.
https://stripe.com/docs/webhooks#retries
Unless in your case, the delivery succeeded but the code didn't handle the events correctly?
no in my case, we just forgot to add the event to the listener
Ah I see. Aside from resending events, you can also just use list all events API
https://stripe.com/docs/api/events/list
and filter by event type and "created" parameters
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
is there a way to filter by customer?
Not by customer but you can list all events for a specific type and iterate on the results comparing the values if that works.
getting a bit nuance here but there is a chance i've not missed anything. If we are doing payments for subscriptions with us_bank_accounts, do you know roughly how long it would take for an invoice.paid event to get sent?
It could take upto 4 business days
https://stripe.com/docs/payments/ach-debit#timing
We using that event to basically log analytics that the revenue was confirmed. We released this update last night so i think that no invoice.paid events for users that signed up since would be processed yet
you think thats a safe bet?
I believe so, you can spot check a few subscriptions with ACH and see if the invoices are still processing
Gotcha. I'd still recommend retrieving all invoice.paid events from yesterday and making sure you didn't miss any with us_bank_account payment method.
problem is i think there are a lot
but the are from a few days ago
like payments started a few days ago
I see. You can use "created" parameter to just filter yesterday's events
https://stripe.com/docs/api/events/list#list_events-created