#ecu_api
1 messages ยท Page 1 of 1 (latest)
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.
- ecu_api, 6 days ago, 39 messages
๐ 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/1245006616865280002
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there ๐ do you know how old the Access Token was when you tried to use it? They expire after about an hour.
Are you able to refresh the Access Token as shown here and then use that successfully?
https://docs.stripe.com/stripe-apps/api-authentication/oauth#refresh-access-token
I have tried two things:
- Right after generating it in the first place (user goes through oauth flow on your UI)
- Right after refreshing the token using the grant_type=refresh_token request
So the token was likely a few seconds old.
Perhaps you can first say if the way I am using the token is correct, that I am supposed to simply pass it as authentication as in my cURL and Node.js examples
And that when I do I am acting on users' behalf
Are you able to refresh the Access Token as shown here and then use that successfully?
I am able to refresh but get same error
Yup, that's shown at the bottom of the section I linked to.
Can you share a request ID where you're seeing that error?
I will try it again soon and get the ID
I think the API example is wrong at the end of the page:
curl https://api.stripe.com/v1/customers
-u "{{ ACCESS_TOKEN }}"
If you don't add a colon at the end of the token curl asks: Enter host password for user
I'm unsure how to get the request ID from curl?
this is empty, is it real time?
even if I look days back I don't actually see any of these requests under the account which owns the oauth ๐ค
If you click on More and toggle on Outbound Connect requests, anything then?
We may not be indexing them if they don't pass auth though.
nope, it doesn't show it then either
that would make sense
but I'm also not seeing token refresh logs there, maybe oauth doesn't log?
Do you know the ID of the Account you're trying to make the request on behalf of that you can share?
yes
it's my other account, how do I find out the ID?
Look what I see under the account on behalf I am making the request! This is on the stripe developers homepage. It doesn't show anything under logs though (even when I clear all filters)
They've rearranged the dashboard pages, so I'm not exactly sure anymore. I think it might be shown in the upper right corner of this page.
https://dashboard.stripe.com/settings/update/public/support-details
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
the account on behalf which I am making requests: acct_1OZ7sBCxb0QiyL6s
Hm, I'm not sure offhand, checking to see if a teammate might have pointers here.
Haven't forgotten about you! My teammates are still looking into this.
๐
Hello ๐ , is this the only account that you are seeing this behavior on? Also can you send me your own account ID? I am having trouble getting insight in to how this is working on your account overall.
@radiant parrot
This is the only account i am testing with
I will get you the other id in a sec
My main account is acct_1PIwfyHcBAxZu84a, this is the account that holds the access and refresh tokens
regarding the other account on behalf I am making requests - it does have Connected enabled, so perhaps this creates some problems?
As far as I know that shouldn't be an issue. Unfortunately I'm still having trouble finding anything on this, I think we will need to show this to a colleague that is more specialized but unfortunately they are not online at the moment. Can you write in to our support team with these IDs and a description of your issue and let me know when you've sent it? I can grab the email thread and show it to my colleague when they are back online.
https://support.stripe.com/?contact=true
I can do it, but not right now, is it OK if I do it later? (In a few h)
Sounds good, I'll keep an eye on my DMs. Please mention this Discord thread as well, that can help with routing if it takes a minute for me to see your message
thanks