#kennyjack_docs
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/1417411498770432034
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! do give me some time to take a look at this
Just wanted to check, are you using the "Create a preview Invoice" API endpoint to gernerat your upcoming Invoice?
I'm using this endpoint https://api.stripe.com/v1/invoices/upcoming
Ok thanks for clarifying, it looks like you are referring to the tax behaviour on the price object.
If tax is inclusive, this will lead to the tax is be included in the final price that the Customer pays. For example, a product has the price defined as 5.00 USD. The final price the customer pays is 5.00 USD.
Whereas if it tax is excluded, the tax is added on top of the price. For example, a product has the price defined as 5.00 USD. The tax charged on this product could be 10% and would result in a final price of 5.50 USD.
We document the same here
Can i said that it doesn't matter if i set Yes' or 'No' setting in Include tax in price object. The only thing that affected is the Taxid i pass in the tax_rates field ?
For example, the Taxid i passed in was tax inclusive then tax will be included in the final price
FYI, when creating new Tax, i can defined it is exclusive or inclusive
To clarify, what behaviour being affected are you referring to?
I was wonder if I set 'Yes' setting in Include tax in price object. But creating new tax with exclusive and use it.
Will the upcoming invoice price follow the setting in Include tax in price object or based on the taxid i pass which is exclusive?
hi there! Teddy's colleague here
I'm just getting caught up on this thread and will follow up again shortly
you can define whether taxes are inclusive/exclusive at both the Price-level and at the Tax Rate-level
https://docs.stripe.com/api/tax_rates/object#tax_rate_object-inclusive
but, if the behaviour set on the Tax Rate conflicts with the behaviour set on the Price, you'll receive an error
A moment, let me try out and send you the request ID. Because the behaviour set on the Tax Rate conflicts with the behaviour set on the Price doesn't gave me error
hmmm, yes thanks the request ID would be great so I can take a closer look
Can help to check this req_qwOo9yfkTXk5To ?
I set the price object to have tax inclusive but the taxID is tax exclusive. It doesn't gave me error
thanks, taking a look now!
could you share the response body to that request? these aren't logged on our side
here the response. Hope it help
thank you! we're also running some tests on our side so will just be a few more minutes
in this scenario, the inclusive/exclusive behaviour set on the Tax Rate overrides the tax_behavior set on the Price
so if you have a Price with tax_behavior=inclusive, but add a Tax Rate with inclusive=false, the taxes will be treated as exclusive (i.e. added to the total amount)
I see โ can I say that the tax rate I set will override the tax_behavior in the price object?
for the Upcoming Invoice API, yes
but if you tried to actually update a Subscription and add a Tax Rate that conflicts with the Price's tax_behavior, you'd receive an error
this is the error you'd receive: "One or more prices has a tax_behavior that conflicts with the tax rates that apply to the corresponding line item."
I see, thank for the info. I will try it out
any time! we're here if you run into any trouble
I have try out. Exactly like what you have describe. Thanks alot for the info