#ijsje
1 messages · Page 1 of 1 (latest)
Not sure! You can test it on Test mode tho
answer is yes
Do you know how I retrieve a stripe customer id from a charge dispute object in my charge.dispute.created webhook endpoint?
Hi! I'm taking over this thread.
The charge.dispute.created event will contain a charge object. And the charge object has a customer property that is expandable: https://stripe.com/docs/api/charges/object?lang=node#charge_object-customer
So when you receive the event you'll need to make an extra API call to retrieve the charge with expand: ["customer"]
If you are not familiar with expand you can learn more about it here: https://stripe.com/docs/expand
I get a dispute object:
my mistake I ment the created endpoint, but it also has a dispute object
The dispute object contains a charge property that is expandable.
So retrieve the dispute with expand: ["charge.customer"]
What endpoint do I need to call the expand the charge?
When you retrieve the dispute: https://stripe.com/docs/api/disputes/retrieve
thnx