#nishanth-reporting
1 messages ยท Page 1 of 1 (latest)
Creating a new thread as there wasn't much in that thread. We did recommend talking to support, it's not the kind of things we help with on this Discord server
I think you misunderstood my requirement
I contacted the support but looks like they couldn't provide much help.
My understanding was that you were looking for a report that has a certain list of columns that you care about. This isn't really a coding question and it's not something we can help with
The above is the example of the file which my colleague downloads from the Stripe portal manually every time. We want to automate this so I am looking for an API which would provide me the above csv(which is downloaded from Stripe portal)
there's no API that gives you the CSV. You have to write the whole code and reconciliation yourself
I believe there would be an API endpoint to fetch the csv ?
We have some reports in the API, it's all documented in details here https://stripe.com/docs/reports/api but I don't think yours is one of them
But unfortunately, my team never touches reports, we can not help you with this here and you will need to talk to our support team for help
Yeah I searched all the reports in the API docs but didn't find the one I am looking for
Is there any other technical team who can help me with this?
Because the support team provided me an API which is not what I am looking for!
We can't really write this for you or anything. My point is: if you want a pre-built report you have to use the API I linked above, and none will match what you're after.
So knowing that, the only way to get that kind of information is to write your own code and build your own CSV reports end to end
Does that make sense?
My point is : when Stripe is providing a pre-built report on its portal that can be downloaded, why is it so that there is no API available for the Developers for the same functionality?
Hope you got my point!
Because there are numerous exports and we don't want to maintain them all in the API. It's just a decision we made.
Do you feel unblocked? I don't want to archive too quickly, but if you are mostly trying to get that CSV in the API, the answer really is that you can't
Not unblocked but I'm looking for an alternative as to where to fetch all the required data to build my own csv
Okay so what's blocking you exactly? Our API Reference covers every API Resource and you likely want to start at https://stripe.com/docs/api/invoices/list to list all invoices or https://stripe.com/docs/api/charges/list to list all payments
Okay, there is no destination/ connect_account in the Charge object?
there is?
You want to look at this one specifically: https://stripe.com/docs/api/charges/object#charge_object-transfer_data
the concept of "destination" is split into two concepts: who is the "merchant of record" (on_behalf_of) and "who is receiving funds" (transfer_data[destination])
@tidal trellis is taking over for me if you have follow up questions and they can help!
okay, could you please keep this thread open so I can ask questions I may get?
๐ sure thing - let me know if you hit any snags ๐
When I try to get a list of all charges, I am always getting exactly 10 records. How do I get all of them?
Hi ๐
Hi @rustic oxide
Stripe limits list requests to 10 by default
You can specify a limit parameter up to 100.
For above 100?
I mean how do I get the 101th record if there are 500 records in the list
You would use the starting_after parameter detailed here: https://stripe.com/docs/api/charges/list#list_charges-starting_after