Level 47
You can get all the invoices associated with a user, plan or a plans user. Look up invoices in there docs. To get a total you'll have to loop through all the invoices and add the charged totals.
1 like
Is there an easy way to retrieve all charges associated with a particular Customer object, or a subscription_id?
I was looking at the API but was unable to find anything other than retrieving a charge via the charge ID... which I am not sure how to get in the first place.
Has anyone ran into something like this?
You can get all the invoices associated with a user, plan or a plans user. Look up invoices in there docs. To get a total you'll have to loop through all the invoices and add the charged totals.
Please or to participate in this conversation.