#dick-flair_api

1 messages ¡ Page 1 of 1 (latest)

dim thornBOT
#

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

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

dim hamlet
#

Hi @last whale . I'm not sure if I've selected the appropriate category really but API seems best fit for my query

#

As you can see, that customer is still on stripe

#

My question is, does it only fetch actively paying customers from the API?

#

Another way I checked was rather than passing an email parameter. I checked the result for all of the result from stripe.customers.list and I couldn't find the user I was looking for in the list

last whale
#

Hi, no it should still return the customer. They do not need a payment/ active subscriptions no.

#

Can you confirm you're using the correct test mode API key when you make this call?

dim hamlet
#

I am yes, 2 seconds, let me just trigger the fetch again and look in the logs

#

Hmm, it doesn't seem to be returning a body for some reason, i'm not sure if this is correct or not but this is the request to fetch the customer via the email
req_H9fPk9UcUj2eii

last whale
dim hamlet
#

Will try now, 2 mins

#

Okay yep, so that seems to work using that method but I don't understand why the initial method of .list doesn't seem to work.

#

I'm not opposed to using this search method but yeah, don't quite get why this is the case

last whale
#

Can you try that List method with a customer id that is not using Test Clocks? I see you're using test Clocks with cus_ShFmp0ewoN5GFr so I'm trying to see if that has an impact

dim hamlet
#

Okay yep, it seems to be OK for customers not using test clocks

#

Interesting that the search method works regardless of test clocks being used

#

Good to know though

#

Ah, I've just realised there is a test_clock parameter in the docs for list too. Should have checked that to begin with, oh well

#

I guess while I've got you, what is the value meant to be for the test_clock parameter, is it the test clock ID? If so, I'm not quite sure where to grab that

last whale
dim hamlet
#

Sorry, I meant on the dashboard, is it not possible to get a hold of that without using the API?

#

In the same way where I can get the subscription or customer ID from the dashboard

dim thornBOT
last whale
#

I do not know much about the Dashboard as we're developers who can help with the API/ integartion with Stripe

#

I can look in the Dashboard

dim hamlet
#

No worries

#

I think I can just dig through the logs and find it via that

#

I'll end it there

#

Appreciate the help

last whale
#

OK, sounds good

dim hamlet
#

Thanks!