#olli-dispute-event

1 messages · Page 1 of 1 (latest)

ripe marlin
#

Hello!

misty onyx
#

👋

ripe marlin
#

Dispute has charge: 'ch_123' as the Charge associated with it which itself has invoice: 'in_123' as the Invoice associated with it which itself has subscription:'sub_123' as the Subscription associated with it.
You can use Expand (https://stripe.com/docs/expand) to retrieve the Dispute and expand all objects at once via charge.invoice.subscription if needed

misty onyx
#

got it, didnt realise charges were associated with invoices. thanks :)

ripe marlin
#

not all of them are!

misty onyx
#

eh, we'll just hope for the best

#

only use subscriptions so probably wont break

ripe marlin
#

still worth playing defensively and looking at whether invoice is set or not in your handler

#

but overall yep should work

misty onyx
#

yeah i will so i don't end up spending hours in the future trying to debug an issue caused by invoice not being set

#

have a nice afternoon :)