#ctodan

1 messages ยท Page 1 of 1 (latest)

stiff valleyBOT
onyx bobcat
#

basically want to resend all invoice.paid events over the last day

#

it wasnt handled by our webhook

fluid stump
#

Oh not sure if there's a way to resend "all"

onyx bobcat
#

its only about <100 events so could do it manually

#

would this send to a webhook that wasnt previously handling this type of event

fluid stump
onyx bobcat
#

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

fluid stump
#

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?

onyx bobcat
#

no in my case, we just forgot to add the event to the listener

fluid stump
onyx bobcat
#

is there a way to filter by customer?

fluid stump
#

Not by customer but you can list all events for a specific type and iterate on the results comparing the values if that works.

onyx bobcat
#

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?

fluid stump
onyx bobcat
#

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?

fluid stump
#

I believe so, you can spot check a few subscriptions with ACH and see if the invoices are still processing

onyx bobcat
#

ya thats what im seeing

#

most of the invoices are still in pending status

fluid stump
#

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.

onyx bobcat
#

problem is i think there are a lot

#

but the are from a few days ago

#

like payments started a few days ago

fluid stump