#Dermeni
1 messages · Page 1 of 1 (latest)
Stripe doesn't send events for negative balance transactions. For Stripe fees, it should be deducted from payments before paying out. Can you share the scenario where you see otherwise?
i understand your point. We're building an accounting app and we would like to capture the stipe fees for our reporting module but it's difficult since there are no events for these fees. Any suggestions?
Stripe doesn't send event for Stripe fees. You may expand the latest_charge.balance_transaction in the Payment Intent Retrieval API to get the Stripe fees. Here's the guide how you can do it: https://stripe.com/docs/expand/use-cases#stripe-fee-for-payment
Your solution is for the charge/payment fee. I am asking about the Stripe fees.
if you look at my picture, the solution you provided is for the 3rd column (Fee). I am clear on this, you get the payment paymentIntent.latest_charge.balance_transaction.fee_details. This is good.
My question is about the 3 rows (Stipe Fee) I marked with red arrow.
how do I get those Stripe Fees as part of webhook events?
Stripe fees are different from processing fees and generally recorded few days after the payment success as separate negative balance transactions.
Stripe fee is a common name and sorry that I didn't get what you were referring to previously. Thanks for sharing the details and it's very clear which Stripe fee you talk about.
For Stripe fee in the screenshot, you may use List Balance Transactions API https://stripe.com/docs/api/balance_transactions/list and set type to stripe_fee. It should return you the Stripe fees in the screenshot you mentioned.
Double checking if it's possible to get through event
thats what i have so far. Just wondering if there is a way to know when to call the list balance transactions API. Because I can call that API once a day, once a week, once a month. I don't rly know when to call it without a proper associated event.
i really suggest to make a change so that the balance.available event fires every singe time the balance changes. Not just when there is a positive balance transaction.
This way, whenever there is a balance.available event, we can call the list balance transaction API and get everything that impacted the balance.
After checking internally, we don't have a Webhook event for Stripe fee or negative balance. The only possible way is to query through Balance Transactions API.
Can I suggest you to write in to Stripe Support https://support.stripe.com/contact, so that they can share the feedback to the product team?
I'm seriously shocked that there are no events for Stripe fees. Will submit support ticket