#tristans_webhooks

1 messages ยท Page 1 of 1 (latest)

gentle frostBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1299298265400872981

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

dusk perch
#

๐Ÿ‘‹ happy to help

unborn cedar
#

thank you for your speed, I did not find this documentation alone ๐Ÿค˜

dusk perch
#

let me know if you need any more help

unborn cedar
#

I am getting the following error when i try to use this cmd => stripe events resend evt_1QCMwXAEt55jQS9fOeh3Sm8l --live --webhook-endpoint=we_1Jr27vAEt55jQS9fCcyIVJrA --stripe-version 2024-09-30.acacia
I don't know what i am missing here, if you can tell me what's wrong.. ๐Ÿ˜…

error :
The provided key 'rk_live_***********************************************************************************29Odo1' does not have the required permissions for this endpoint on account 'acct_1DEFCOA'. Please use a different key to perform this action.

dusk perch
#

yes that's expected

unborn cedar
#

stripe login let me set auth for test mode only

dusk perch
#

give me a second

#

I'll share the proper docs

#

you can see the rk_xxx Restricted Key that is used for your CLI

#

you need to click on the ... then Edit Key

#

actually that might not work

#

you might need to use your secret key for that

unborn cedar
#

ok, but how can i use my secret key with the stripe CLI ?

dusk perch
#

so you can actually pass your secret key with the --api-key

unborn cedar
#

well, it's re-sending the event with the initial api_version "2020-08-27" while i need to resend the request and replace the value of the field api_version with "2024-09-30.acacia"

dusk perch
#

can you try to create a new webhook endpoint that points to the same URL (just for now) and then use the new webhook endpoint ID?

unborn cedar
#

ok i'll try

dusk perch
#

for some reason I can't seem to see the request that you're sending from the CLI

unborn cedar
#

same result for the new webhook

#

do you need the id of the new webhook ?

dusk perch
#

would you mind sharing the whole CLI request without the secret key?

unborn cedar
#

stripe events resend evt_1QCMwXAEt55jQS9fOeh3Sm8l --live --webhook-endpoint=we_1QDk7fAEt55jQS9fIQjuNG5I --stripe-version 2024-09-30.acacia --api-key ***

dusk perch
#

are you getting a request ID req_xxxx ?

#

nevermind I found what I was looking for

#

give me a second

gentle frostBOT
novel mulch
#

Hey! Taking over for my colleague.

#

You can't regenerate an event using a different API version

unborn cedar
#

hi !

novel mulch
#

But what you can do as a workaround, is to make a get by id on the object Id using a specific/different API version when you receive the event payload

unborn cedar
#

Well I just wanted to check that by updating the api version of my webhook, I would no longer have the following error => Received event with API version 2020-08-27, but Stripe.net 46.0.0 expects API version 2024-09-30.acacia

novel mulch
#

I see the use case.. You need to generate a new event in that case.

unborn cedar
#

Yes, i'll see it later then ๐Ÿ™‚ Thanks for your time