#sanjeev-reports
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Juggling between a few threads
Please give me a moment to catch up ๐
Have you had a chance to look into Payout reconciliation report? https://stripe.com/docs/reports/payout-reconciliation
But we need to generate reports based on a metadata field (that refers to category of a product) which is saved in paymentIntent, and I am afraid that it wont be available in payouts
I would suggest you reach out to our support about that
https://support.stripe.com/?contact=true
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
But in support will we be getting any technical support?
Yup they should be able to route your question to the team that has more context on specific reports
Let me explain my query in a bit detail.
What I am currently doing is, I am fetching a list of PaymentIntents which contains a specific metadata key value.
Then I am looping through those PaymentIntents and fetching balance transactions to fetch fees associated.
The I am having refunds and balanceTransaction for each refund as well.
Lastly, I am fetching disputes data as well.
And by fetching all of this data I am calculating total revenue for that specific category.
But issue is this is taking a lot of time.
I see. I wonder if using webhooks to handle this would be faster?
You can use the webhook to log these things when they happen rather than running a really long query
Using webhooks, do you refer saving net amount of each paymentIntent in its metadata? Like each time refund is generated that metadata will update
That is certainly an option.
I was thinking of just having another table on your backend that can log/update the information whenever you receive a webhook event for payment intents, refunds etc
I got that, but currently our application is low scale and we are not having a database as such. Everything is on stripe for now
I see.
You can def use metadata to hold non-sensitive information
But I'd still recommend reaching out to our support team to see if there are any specific types of reports that you can use to make this faster
Ok sure.. Thanks a lot for your time. Have a good day ahead. ๐
NP! Happy to help ๐