#Gilad
1 messages · Page 1 of 1 (latest)
Do you have an example customer that you are not getting back like this?
As far as I know that customer should be returned in the normal list call
Hi
Thanks,
It's works with query instead opf list
this.stripe.customers.search({ query: email:'${email.toLocaleLowerCase()}' })
Ah thank you for the clarification. I think our search API only does exact matches so it wouldn't know that person@example.com is the same as person+word@example.com
At the moment it looks like we only support the exact string and substring matching https://stripe.com/docs/search#field-types,-substring-matching,-and-numeric-comparators
So in my example if you just search "person" that would return both emails. Here it might be good to just search the part of the email address before the + or @ and then have some logic to confirm they are the same email otherwise