Skip to content
Advertisement

How to retrieve all the charges for a specific customer in Stripe using the customer ID?

I have the customer ID for a specific customer in Stripe. How can I retrieve all the charge objects for this customer?

The customer object can be retrieved using the following code:

Customer = stripe.Customer.retrieve(customerId)

Advertisement

Answer

This will do it

    Charges=stripe.Charge.list(customer=customerId)
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement