#tousif-ali_api

1 messages ¡ Page 1 of 1 (latest)

ember pathBOT
#

👋 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/1286296236386942986

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

marsh olive
#

hi there!

tropic lark
#

hi

marsh olive
#

what are you trying to do?

tropic lark
#

connecting to stripe cli

#

my client added me to team

#

and gave access to his stripe account

#

right now I am on admin role

#

I can access his stripe via browser

#

but how to connect stripe cli to my client live account

marsh olive
#

just run stripe login

tropic lark
#

I have ran
stripe login --api-key sk_live......

marsh olive
#

and what's the issue?

tropic lark
#

it always connect me to the test mode

#

I want to run resend event cli api

#

there are bunch of faild event I need to resend

marsh olive
tropic lark
#

I am part of 3 stripe account team

#

how it know which live account need to used?

marsh olive
#

you can also set the --api-key when you run the resend command.

tropic lark
#

nothing work

sly silo
#

You need to pass the --webhook-endpoint flag with the corresponding we_xxx ID of the wbehook you want to send them too

#

Without that the CLI will try to send the event(s) to the original webhook we tried to deliver to, but I case in this case that delivery never attempted

tropic lark
#

I need to trigger all pending webhook

#

I fixed the code on my end that was causing the webhook issue

sly silo
#

I know, we spoke earlier. Can you paste the evt_xxx ID here

tropic lark
#

its a lot

#

can send all?

sly silo
#

I just need the one from the screenshot that is failing

tropic lark
#

wait

#

evt_1PzCHxHme4eKRHHSxHFP1dH3

sly silo
#

Btw you've posted your live secret key here so I'd recommend re-rolling that

#

I'll delete the screenshot

#

Try this: stripe resend evt_1PzCHxHme4eKRHHSxHFP1dH3 --live --webhook-endpoint=we_1OfJIKHme4eKRHHSZ0j0wrBk

tropic lark
#

ok

#

unknown command

#

I think you miss events

sly silo
#

Yeah maybe, just doing it from memory

tropic lark
#

stripe events resend evt_1PzCHxHme4eKRHHSxHFP1dH3 --live --webhook-endpoint=we_1OfJIKHme4eKRHHSZ0j0wrBk

sly silo
#

I'm guessing that's the ID of your webhook btw

#

that's the ID of the webhook we originally sent that event to (that failed)

tropic lark
#

same thing

#

its takes me to the auth page in the browser

#

and only show test mode

sly silo
#

Yeah you need to add your sk_xxx as before

#

I just omitted that as I don't have it

tropic lark
#

ok

#

with which flag?

#

--api-key

sly silo
#

Yes

tropic lark
#

thanks man it worked

sly silo
tropic lark
#

is this same --webhook-endpoint=we_1OfJIKHme4eKRHHSZ0j0wrBk for all event id

sly silo
#

I don't know is it?

#

If you only have one webhook then yes

tropic lark
#

I have more than 100s events pending

sly silo
#

I don't understand what you're asking me