#boggerss_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1257293525456781385
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
The following endpoint:
https://docs.stripe.com/api/tax/calculations/create
Takes parameter line_items.tax_behavior enum (inclusive, exclusive)
When dealing with tax settings object you can apply defaults.tax_behavior to be exclsuive inclusive OR inferred_by_currency
https://docs.stripe.com/api/tax/settings/object
Why can I not use inferred_by_currency with the calculation API?
Otherwise I have no idea wether or not the tax_behavior is inclusive or exclusive without mapping that out per currency
What happens if you exclude the line_items.tax_behavior?
It defaults to exclusive so in my current test case for GBP it should be inclusive
Could you please share an example taxcalc_xxx?
taxcalc_1PXiPNKaoyVgz6SqGQuPklIt
Why can I not use inferred_by_currency with the calculation API?
It's simply not supported: https://docs.stripe.com/api/tax/calculations/create#calculate_tax-line_items-tax_behavior
One of the reasons (maybe not sure) is that the tax calcaultion APi don't accept currency within it's params
It does take a currency in the primary parameters though
https://docs.stripe.com/api/tax/calculations/create
Just not within line_items
Yes but not at the price line_items level
It seems to me that tax_rates might be a better option for my integration?
If my customer in stripe connect sets inferred_by_currency when doing tax_calculations I have no idea wether or not to chose inclusive or exclusive
Leaving me at the point where tax_rates might be more successful?
Hmm, well Tax Rates only work with certain APIs/surfaces so depends what it is you're doing
I am creating invoices with invoice line items
I would prefer to be able to use automatic tax but if I cannot specify the exclusive / inclusive without knowing per country then the tax calculation API kinda bottle necks me from getting to use automatic tax
I'd agree that the calculations API should support an inferred_by_currency enum โ will file that feedback
Is there a way to be notified on that or is it something that typically takes a few months to get filtered to the right API team
I can take your acct_xxx to associate with the request, and that way if/when it's worked on you'd be notified
acct_1Os7uOLGtFLdDmk7