#jsd219_api

1 messages ยท Page 1 of 1 (latest)

warm charmBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1255886980215210024

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

worn adder
#

Hello

#

In the Dashboard are you looking at your own account or a Connected Account?

sick plume
#

ah good question. I think it might be a connected account but how can i tell for sure?

worn adder
#

What is the Dashboard URL that you are on when you are viewing these Customers?

sick plume
#

actually i think i am just an admin on m client's account

#

one sec

worn adder
sick plume
worn adder
#

Okay yeah that's not a Connected Account

#

Have you double checked you are using the correct keys?

sick plume
#

yes, it is a restricted key

worn adder
#

You will need to filter your logs to see GET requests

sick plume
#

but here is the wierd part. at the URL above. stripe has their own filtering menu. If i click on Email and put in the email of the first entry it comes up No results

worn adder
#

We don't really know much about the Dashboard here -- we just focus on the use of the API. If you have questions or bug reports for Dashboard behavior then you'll want to work with our Support team via https://support.stripe.com/contact/login

sick plume
#

got it, i just thought that might be a clue ๐Ÿ™‚

worn adder
#

Not really, best way I can help is to see a request ID for the API request you are making

sick plume
#

ok interesting, when i go to the logs i dont see any from my api calls

worn adder
#

Even when you filter to show GET requests?

#

If so, then yeah you are using the wrong API key (not the one for the account that you are looking at in the Dashboard)

warm charmBOT
sick plume
#

ya i am seeing only POST and when i go to API endpoint and enter /v1/customers i get nothing. i also tried GET /v1/customers and got nothing. I might be doing it wrong

#

in postman i have a GET request to https://api.stripe.com/v1/customers my Authorization is set to Basic Auth and the username is the restriceted key. this is what i get { "object": "list", "data": [], "has_more": false, "url": "/v1/customers" }

lament raptor
#

Which account owns the key you're using?

#

Likely you're making the request on the wrong account

#

If using a platform key, you'd need to pass the stripe account header

sick plume
sick plume
#

that allows read only on Customers, Customer portal, Invoice, Prices, Subsciptions

lament raptor
#

Yeah but likely that restricted key is a platform key

#

Belonging to the connect account's platform account

sick plume
#

how can i tell?

lament raptor
#

Looks like the key belongs to
acct_1OHAW9AUcZuRPCmE, which is neither a connect account nor a platform

#

The request you're making is also a livemode requets

#

Does the customer only exist in test mode?

#

Can you share the customer id for that customer that you are seeing in the dashboard so I can verify?

sick plume
#

how can i get the customer id?

lament raptor
#

Oh

#

It's a guest customer not a customer

#

That's why

#

Guest customers aren't actual customer objects

#

So you can't use the api to list them

sick plume
#

ah, is there any endpoint to see them?

lament raptor
#

nah

#

They're not listable via the api

#

Because they're not real customers

#

It's a dashboard only concept to group payments by email that aren't associated with a customer

sick plume
#

what about using the api to look up orders or payments via an email?

lament raptor
#

It's a bit harder that way because the email is stored on the payment method object not the charge or payment intent directly

#

Really I recommend creating customers up-front in your flow

sick plume
#

ok thank you for your time and help i really appreciate it ๐Ÿ™‚