Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stripe - retrieve Customer ID using email from form

Is there any way to retrieve a Customer ID from the e-mail they enter in the payment form via the API?

For my application customers will pay multiple times on an ongoing basis but for simplicity's sake there are no logins, they just enter their payment info and invoice number. As a best practice I'd like to keep all of their charges together in Stripe for obvious reasons but it doesn't seem this is possible?

like image 720
javy Avatar asked Sep 20 '25 14:09

javy


1 Answers

I did this API request. This API request is not available in stripe docs.I got their search request at dashboard customize according to my requirements.

url :https://api.stripe.com/v1/search?query="+email+"&prefix=false",
method: GET
headers: {
  "authorization": "Bearer Your_seceret Key",
  "content-type": "application/x-www-form-urlencoded",
}
like image 179
Sufyan Ahmad Avatar answered Sep 22 '25 05:09

Sufyan Ahmad