#megerbran
1 messages ยท Page 1 of 1 (latest)
I want to list all customers then filter customers that does not have a payment method attached
Gotcha. In that case you would want to write a loop to list Customers and then use https://stripe.com/docs/api/payment_methods/customer_list to list PaymentMethods by Customer. Then you can filter based on those that do not have any data returned.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
๐
Sorry, yep: https://stripe.com/docs/api/customers/list
And you'll likely want to use auto-pagination here: https://stripe.com/docs/api/pagination/auto
There is no payment method attached to the object
That is the problem
I can't seems to know which customers have a payment method attached
Hello! I'm taking over and catching up...
You would need to list all Customers, then for each Customer list their Payment Methods: https://stripe.com/docs/api/payment_methods/customer_list
Ok copied
Thanks
Another things, my clients have above 100 customer
I place a limi to 3000
But I got back 100
Is there a way to get more than 100 customers
Yep, you would use auto-pagination as suggested above: https://stripe.com/docs/api/pagination/auto