#ThunderBuddy - Customer Export
1 messages ยท Page 1 of 1 (latest)
Thanks!
So you can query the API for payment methods related to a specific customer: https://stripe.com/docs/api/payment_methods/customer_list
Since this is a developer space, I generally share more code forward solutions here. In this case I would write a script that used our auto-pagination API feature https://stripe.com/docs/api/pagination/auto to loop through all customers and then use the Payment Methods API to get the payment info.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ok, great. Thank you @tight sundial ! Sorry, I usually ask dev related questions here.
Would this question be better at #help?
Well, are you looking for a method beyond the scripted approach I outlined? To rephrase I would
- Loop through all customers using auto-paginiation
- For each customer, get payment methods using the Payment Method API
Yes, thank you again! This is an amazing channel!
Great! Happy to help