#pablo_refund-includable
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1299130472659685386
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
refunds is not returned on Charge by default and hasn't been for a while. It was removed in https://docs.stripe.com/upgrades#2022-11-15
pablo_refund-includable
What you need to do is use our Expand feature which we document at https://stripe.com/docs/expand. I recommend watching the video https://www.youtube.com/watch?v=m8Vj_CEWyQc if you are unfamiliar
your docs are out of date then, https://docs.stripe.com/api/charges/object#charge_object-amount_refunded
what is interesting, is if i use the search api, and the query refunded:"true" then amount_refunded is populated
not very consistent
Hum sorry I misunderstood your question. I thought you said you were missing the refunds, not the amount_refunded
Gotcha. Then I can tell you that's impossible. So let's try to debug this together. Can you try this in Test mode:
- Create a payment in the Dashboard
- Refund it immediately
- Call the List Charges API and see if that Charge is in the response
i'll have to try that tomorrow
ah okay, sounds good. My guess is that it will just work and there's likely a bug in your code right now with created or the way you are listing Charges
potentially. i will do more digging ofc, and im trying to get some info from the end client to help narrow down when the refunds happened so i can try to pinpoint them in our proxy endpoint