#x110dc-CLI-connect
1 messages · Page 1 of 1 (latest)
Thanks. Can I use stripe listen to listen for events on connected accounts?
Yup you can listen to connected account event by passing in --connect-headers flag
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.
Apologies. Just a sec
checking something really quick
quick correction: the flag you need is --forward-connect-to
https://stripe.com/docs/cli/listen#listen-forward-connect-to
I sent out the wrong link earlier
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.)
I'm not sure if this would work but you can provide a connected account_id by using --account flag
or you can specify a webhook endpoint to resend the event to using --webhook-endpoint flag
https://stripe.com/docs/cli/events/resend#events_resend-account
For the first method, stripe events resend evt_1KO6gMPaFBJIpqYuBoYSCuus --stripe-account=acct_1JDfHZPaFBJIpqYu
I get invalid_request_error
I think that issue is described here: https://github.com/stripe/stripe-cli/issues/353
hmm
what if you remove stripe and just keep --account
Ah! That worked!
Wonderful
Thank you so much. I think this is what I needed!