#Carlos-resend-event

1 messages · Page 1 of 1 (latest)

livid lava
wind lance
#

thanks

livid lava
#

Sure!

wind lance
#

The provided key 'rk_live_*********************************************************************************************8mlQKV' does not have the required permissions for this endpoint on account 'acct_1JycFYANR34g5yeQ'. Having the 'rak_webhook_write' permission would allow this request to continue.

livid lava
#

Ah you are trying to resend a Connect event?

wind lance
#

yes

livid lava
#

So yeah I do believe you would need a restricted key with the proper permissions (rak_webhook_write) to do this if I remember correctly.

wind lance
#

what do i need to do to configure this key?

livid lava
#

Please delete that immediately

wind lance
#

I have a restricted key created

livid lava
#

That is a live restricted key

#

And this is a public server

#

Would recommend rolling it as well as it could give someone access to your account!

wind lance
#

Thanks, I don't know where I was thinking.

livid lava
#

All good!

wind lance
#

apparently I already have restricted keys created

livid lava
#

That's fine. Do you have one that has Write permissions for Webhook Endpoints?

#

Specifically:

wind lance
#

I have two restricted keys created will the stripe CLI know which one to use?

livid lava
#

You use the --api-key flag to specify the one you want to use

wind lance
livid lava
wind lance
#

is the following command correct?

stripe events --api-key test_mdksmdks resend evt_1LSMEhANR34g5yeQ0LyIQsEB --live

livid lava
#

Or you can forward via the CLI

#

Mostly, but you should also set --account if you are resending an event on your Connected Account

#

stripe events --api-key test_mdksmdks resend evt_1LSMEhANR34g5yeQ0LyIQsEB --live --account=acct_123

#

And --webhook-endpoint=we_123 if you want to resend directly to your platform endpoint

wind lance
#

ok

#

where can i find my account id?

livid lava
#

Hmm the event you mentioned above is on your account, no? Not on a Connected Account

#

Are you sure you are dealing with a Connect event at all? And not just an event on your own account?

#

Try stripe events --api-key test_mdksmdks resend evt_1LSMEhANR34g5yeQ0LyIQsEB --live --webhook-endpoint=we_1KQuZ3ANR34g5yeQndgsyP58

wind lance
#

done

livid lava
#

It worked?

wind lance
#

yes

livid lava
#

🎉

wind lance
#

thank you so much