#ricardofs_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1216832988361396226
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there ๐ I'm not able to see the requests you're referring to with the provided link, do you have a request ID (req_) that you could share?
Looking at the endpoint you referenced, that will create a Tax Transaction. Are you trying to retrieve that Tax Transaction:
https://docs.stripe.com/api/tax/transactions/retrieve
retrieve it's line items:
https://docs.stripe.com/api/tax/transactions/line_items
or possibly something else?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hi toby, thank you for responding.
What they're looking for is a tax report. So, I'm searching to see if I can obtain a tax breakdown from any endpoint, not just line items.
I'm not too familiar with them, but it does look like there are some prebuilt reports for Stripe Tax:
https://docs.stripe.com/tax/reports
I don't know if they'll do what you're after though.
I'm not readily spotting a way to get the breakdown again after the initial calculation, you may need to store the details from that response if you want to be able to surface them later.
Yes, the Stripe reports have the information I need, but there isn't an endpoint or any way to obtain this automatically.
One of the tasks is to make these reports more user-friendly, but there isn't a way to obtain the data from the API. Perhaps there's a URL where I can automate the download of this report or something like that? Currently, it only works if I log in through the dashboard, but I don't want to have to manually calculate each report.
If I can get that report or the data from some endpoint to automate the processing, that works for me.
Ah, yeah, looks like accessing those report types via the API is currently in beta. You can express your interest in getting early access to that from this page, but I'm not sure if that beta is accepting new users:
https://docs.stripe.com/reports/report-types/tax
Oh, great! I'm going to register and see if I can get access.
I've already signed up. I'm going to wait a bit to see if this works. If not, I understand that it would only be possible by saving the values when generating the calculation, right? (It's what I've been insisting on, but they want to keep the teams separate... I don't know why.)
My last question would be, what are the Web scraping policies for Stripe? I searched a bit and haven't been able to find anything. Could I automatically download this report with some bot? Or would it violate Stripe's policies?
Yup, saving those details after the calculation would by my suggestions. I'm less familiar about what violates our policies, that's something to discuss with our Support team:
https://support.stripe.com/?contact=true
Even if it's permitted, that seems like a fragile approach as the UI to get to those reports could change and impact your scraping.
Find help and support for Stripe. Our support site 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.
Got it, for now I will see if I can get access to the beta and I will continue testing thank you very much for your help.