#jinmatt
1 messages · Page 1 of 1 (latest)
When you say "filter out customers", what do you mean? Just make sure they don't show up in your List Customers API call?
the List() method is not returning any customers
Okay, so the problem is that you're not getting any Customers in the response, correct?
yes
Do you have example Customer IDs for Customers who have that email?
Also, do a console log in your request to make sure the email variable that you're using is correct.
this is the email: reresalah1980@yahoo.com
Is that what is output when you do a console log?
this is request log in stripe https://dashboard.stripe.com/test/logs/req_96q0FKmOSnyecW
It looks like your GET request to List All Customers API happened the exact same second that the Customer was created. Can you try making a new API request to get the Customer in case there's a race condition here?
so I'm looking if there is an existing customer and deleting the customer then recreating the customer for a test environment. Looks like its working once and then if I recreate the user immediately after deleting, the list is not returning the user anymore
Can you put in a sleep statement so that your API call to retrieve the Customer happens a few seconds after the new Customer is created?