#AndroidServo
1 messages · Page 1 of 1 (latest)
Hello! Guest Customers are not available in the API. There is a Node snippet for our Customer Search API here: https://stripe.com/docs/api/customers/search
Thank you for your response! We have made several attempts with the search method, but we're looking to grab all customer information. Is there a way to modify guest customers to become actual customers?
Unfortunately not as far as I know. I will check if there is another way to get guest customer info via the API and will get back to you
Thank you so much! We really appreciate your help with this issue!
I will also keep you posted if Bill and I find anything in the meantime.
So as Rubeus said, guest customers aren't directly available in the API. Going forward you can set customer creation to always for your checkout sessions so that you will have all their data in that call going forward. https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer_creation
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Going backwards unfortunately I am still unsure on. You may be able to try retrieving the checkout sessions themselves and seeing if customer info is on them but I am unsure how that works with guest customers
Thank you for those great insights! I remember trying something once with getting customer information through the paymentIntent objects, but that was well over a year ago and I can't remember the code right off. I'm looking to see if that's possible as well. Is it also possible to create customer objects within the paymentIntent call?
Good question. Checking in to that...
Unfortunately it looks like this is not possible for payment intents at the moment. That will have to be a separate call
Thank you for this update. I'll see what we can do with the information your team has provided us. Thank you so much again for your help!
So it turns out you can get some of this info from your Checkout Sessions in the API. You would can check the billing_details on the payment intent that the checkout session created https://stripe.com/docs/api/payment_methods/object#payment_method_object-billing_details
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.