How to retrieve all the charges for a specific costumer 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)

Answer

This will do it

    Charges=stripe.Charge.list(customer=customerId)


Source: stackoverflow