#jinmatt

1 messages · Page 1 of 1 (latest)

grizzled bladeBOT
keen void
#

When you say "filter out customers", what do you mean? Just make sure they don't show up in your List Customers API call?

vapid sierra
#

the List() method is not returning any customers

keen void
#

Okay, so the problem is that you're not getting any Customers in the response, correct?

vapid sierra
#

yes

grizzled bladeBOT
keen void
#

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.

vapid sierra
keen void
#

Is that what is output when you do a console log?

vapid sierra
keen void
#

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?

vapid sierra
#

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

keen void
#

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?