#lian.yagoda
1 messages · Page 1 of 1 (latest)
Hi there!
So you have a charge ID, and want to find the corresponding product that was bought? Can you share one of the charge ID?
ch_3M4YjqCU1g4y0fco17x3457Y
when I connect refunds to this charge I don't get the full amount
The Charge object has an invoice property. And if you look at the Invoice object you can find the product information inside the lines property.
I know, but what I'm looking for is the product that was refunded in the refund object
We sometimes issue refunds for one product in the charge (not the whole price) and I can't find a way to tell which product was refunded, I only have a charge id that connects to the whole charge
Oh I see, I don't thing we have that information. A refund has a specific amount and is related to a charge, but we don't know which products it maps to exatly (for example if the charge was for multiple products).
ok thanks
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!