#lam_refund-expansion-charge
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/1244932326472028241
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Here is the event you are looking for evt_3PLJYRAfC1NR9PLZ1dNV2S1f
Yes
So it's generated. What is the issue you are facing ?
It was sent to your webhook endpoint https://qa.***.co/orderservice/orders/refund
But your API didn't responded with 200
It responded with 500 and this response body {"message":"Server Error"}
Ah I see, yes now you need to expand refunds
After you get the webhook event, you need to make an API call to retreive the refunds
how to do that with Java ?
Here is an example:
https://docs.stripe.com/api/refunds/list?lang=java#list_refunds-charge
The example above without using expand
if you want to use expand
You make the retreive API charge by Id:
https://docs.stripe.com/api/charges/retrieve?lang=java
And you expand the refunds:
https://docs.stripe.com/api/expanding_objects?lang=java
Ah. Ok thank you
Np!
This was introduce with the 2022-11-15 version:
https://docs.stripe.com/upgrades#2022-11-15:~:text=Copied!-,Charge,but for performance reasons we recommended against doing so unless needed.,-The charges property