#ssbb-application-fee-refund
1 messages ยท Page 1 of 1 (latest)
Hi ๐ I'm not sure I'm understanding your concern, could you share the IDs of related objects so I can take a closer look?
Hi @supple isle !
For example this test mode payment ch_3LDAz0KuJhxWGTJC1fhPBJPZ
So I created a refund re_3LDAz0KuJhxWGTJC15vfOwnP with refund_application_fee flag set to true. So because of this Stripe refunded application fee automatically so there is fr_1LGS9aKuJhxWGTJCqp1NwKMd fee refund
What I am trying to do is to know that this fee refund created because of this payment refund
Just like we have balance_transaction.fee field on refund to see that Stripe refunded part of their fee because of refund - I want to know the same for application fee refunds
So all I want to know is that fr_1LGS9aKuJhxWGTJCqp1NwKMd created because of re_3LDAz0KuJhxWGTJC15vfOwnP (since I set refund_application_fee=true).
Eg if I have 5 refunds there is 5 app fee refunds as well so need to associate all of this somehow
Really sorry about the delay, thank you for the additional context. Taking a look.
What I've been able to piece together, is that you can follow the chain of objects in this order to get back from the Fee Refund to the Charge:
- Fee Refund - find the related Application Fee from the
feefield: https://stripe.com/docs/api/fee_refunds/object#fee_refund_object-fee - Application Fee - from here find the related charge in the
chargefield:
https://stripe.com/docs/api/application_fees/object#application_fee_object-charge
I am asked about Fee Refund -> Refund (or reverse), not Fee Refund -> Charge
๐ฆ
You know refund_application_fee flag for refunds right?
The Charge object contains a list of it's related refunds:
https://stripe.com/docs/api/charges/object#charge_object-refunds
yeah but how I can associate specific fee refund to specific refund?
eg there is 10 refunds. and I set refund_application_fee=true only for 5 of them
so now I have 5 application fee refunds and 10 refunds. and I want to know how much application fee was refunded for each refund (it's $0 for 5 and some other values for other 5)
Not sure off the top of my head, will need to do another round of digging to see if that is possible.
Hi, noting here that I'm currently further investigating this and will get back to you as soon as I find something to share
Sure, thank you!
Upon reviewing, what you might be looking for is here: https://stripe.com/docs/reports/balance. This will help with your reconciliation and where thise 5 applications fee refunds applied to.