#syushchenko_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/1346843103998251078
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there ๐ taking a look
Can you help me understand what you're trying to accomplish here?
The tax_breakdown seems to have the breakdown of tax by the type of tax (such as sales tax for a given jurisdiction), whereas line_items.data.amount_tax shows the tax amount for each line item.
Yes, of course, but we would like to understand which tax_breakdown belongs to which row element to get the tax_type and taxability_reason
My understanding is there isn't a direct mapping there, as multiple items may be included in the tax amount for a specific tax type and jurisdiction.
@plush monolith the case is the following: We want to display in the checkout different tax types, e.g. Sales Tax and Lease Tax for different types of products/services for a given state. Unfortunately there is no reference between the line items and the tax breakdown which, the only one is matching based on array index, whcih is not reliable, since if you have e.g. 2 line items and shipping costs , it results into 3 tax breakdown elements, line item 1 breakdown, shipping breakdown, line item 2 breakdown
It doesn't seem like that is supported currently, and I'll file feedback with our teams that this is something you'd be interested in seeing added in the future.
In the meantime, do you get the insight you want if you only include a single line item in each calculation request?
Yes, but for us this is not a solution.
Are you able to share a request showing this behavior, so I can include that context in the feature request?
@plush monolith we don't have a specific UI visualization of that platform yet
doing individual calls is not a scalable solution and would probably penetrate the Tax Calculation endpoints excessively, since we see order with +90 line items which would result into 90 API calls and some more advanced aggregation logic and error handling on our end
I don't need a visualization, I want to see the raw output of our API, so I just need the ID of a request you made to our API where you saw the behavior you're describing.
https://support.stripe.com/questions/finding-the-id-for-an-api-request
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.
@crisp burrow please provide the example taxcalc id for the request with sales and lease tax
taxcalc_1QyzfRAKl7vwYuj04QbMSvtD
I'll get what I need from that, thanks.
Thanks for taking the time to flag this opportunity for improvement to us, I'll file this feedback with the appropriate team.
@plush monolith how will we be informed if this will ever be released?
You can subscribe to our developer updates from the bottom of almost all of our documentation pages.