#harry_api

1 messages ¡ Page 1 of 1 (latest)

pseudo locustBOT
#

👋 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/1302950978177335389

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

onyx pivot
#

hi! hmm do you have an example of the tax you're talking about? are you referring to tax that you as the merchant model on your charge(like sales tax) or the tax/VAT that Stripe applies to the fee itself?

orchid sable
#

Check this screenshot, I want the tax to be calculated only on $100 not on the $103.30 ($3.30 is processing fee I added separately as an invoice item)

onyx pivot
#

I see. That's not really possible, tax is always calculated on the subtotal of the Invoice

orchid sable
#

Even if I added it separately as in before creating this subscription?

onyx pivot
#

yes even then; the invoice is subtotalled (including pulling in any invoice items pending) and that is the total the tax is calculated against

orchid sable
#

In your create invoice item doc you mention on property tax_rates: "The tax rates which apply to the invoice item. When set, the default_tax_rates on the invoice do not apply to this invoice item." so if I have passed null that means default will be applied?

onyx pivot
#

yes

orchid sable
#

What if I add a zero dollar tax rate in the invoice item will the default tax rates still be calculated ?

onyx pivot
#

I think it would(since the tax is calculated on the subtotal) but you could test and see what happens