#x110dc-CLI-connect

1 messages · Page 1 of 1 (latest)

jovial pasture
#

Hello 👋
Happy to help. Feel free to drop your questions in this thread

exotic cave
#

Thanks. Can I use stripe listen to listen for events on connected accounts?

jovial pasture
#

Yup you can listen to connected account event by passing in --connect-headers flag

exotic cave
#

I guess I don't understand that bit of documentation. What values should I put in there and how does that let me listen for connect events? It makes it sound like I'd be passing these values downstream to my app, not to Stripe so I'm confused.

#

Er maybe it doesn't sound like I'd be passing it to my app, but I don't know what kind of values to pass there or how that would help me.

jovial pasture
#

Apologies. Just a sec
checking something really quick

#

I sent out the wrong link earlier

exotic cave
#

Got it. Thanks.

#

Last question, I think: is there any way to resend an existing event? Either using the CLI or the dashboard? For regular webhooks I can just press a "Resend" button in the dashboard or use stripe events resend via the CLI. But I can't use stripe events resend for connect events. And the webhook that shows in the dash when using stripe listen doesn't show events so can't resend there either.

#

(during the dev lifecycle it's helpful to resend the same event over and over rather than having to generate a new one.)

jovial pasture
exotic cave
#

For the first method, stripe events resend evt_1KO6gMPaFBJIpqYuBoYSCuus --stripe-account=acct_1JDfHZPaFBJIpqYu

#

I get invalid_request_error

jovial pasture
#

hmm
what if you remove stripe and just keep --account

exotic cave
#

Ah! That worked!

jovial pasture
#

Wonderful

exotic cave
#

Thank you so much. I think this is what I needed!