#andy
1 messages · Page 1 of 1 (latest)
Hi there
i could try to retrieve_refund but i dont know if i can guarantee the refund exists by then
hi bismarck!
So to clarify you want to issue a refund on your Connected Account and refund the associated App fee back to that Connected Account and you are looking for the data on the App fee, correct?
correct. i have a webhook that listens for application_fee.created, which is working, but i'd also like to try to record the fee refund synchronously when it's created if that's possible
Those are different points in time? app_fee.created is when the initial payment occurs, no? Now you are talking about the refund?
Just confused by that example and how these are related
Regardless, have you tried expanding the balance_transaction when you create the refund?
I believe that should show you the app fee amount
doesn't look like the balance transaction reports anything about the application fee refund
Ah right that's because the app fee is on the charge, not the refund. Try expanding charge.balance_transaction
that does include the fee details, but not the fee refund
It doesn't indicate the amount_refunded for the app_fee?
What's the payload?
Oh wait no it won't
Okay yeah sorry I'm wrong
This isn't possible since the refund doesn't trace directly to the application fee refund in any way
The application_fee.refunded hook is the proper way here
ok, thanks!
Sorry about the runaround
all good, sorry i was distracted and didnt respond right away!