#scastrec-disputes
1 messages · Page 1 of 1 (latest)
Hi there! You looking for Issuing disputes? Or disputes on PaymentIntents/Charges?
You likely want to list disputes using https://stripe.com/docs/api/disputes/list and then expand the associated charge which will have the customer ID associated with it.
Info on expanding: https://stripe.com/docs/api/expanding_objects
All disputes related to a specific customer.
But in GET /disputes there is no customer ID filter
Yep see above, you need to expand the charge
So, I have to list all the charges of a customer, and then List all the disputes?
And same with PaymentIntent...
If you want to go Customer --> Dispute then yes. If you want to go Dispute --> Customer then you would list all disputes on your account and filter by customer.
Actually sorry, that's incorrect. The dispute ID is not associated directly with the Charge (if you want the dispute ID).
So you can't get the dispute ID from listing charges.
You basically want to do what I stated above.... list all disputes and expand the charge which will then let you filter by customer