#kennyjack_docs

1 messages ยท Page 1 of 1 (latest)

hexed jungleBOT
#

๐Ÿ‘‹ 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.

silk kernel
#

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?

stone void
silk kernel
#

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

stone void
#

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

silk kernel
#

To clarify, what behaviour being affected are you referring to?

hexed jungleBOT
stone void
#

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?

swift belfry
#

hi there! Teddy's colleague here

I'm just getting caught up on this thread and will follow up again shortly

#

but, if the behaviour set on the Tax Rate conflicts with the behaviour set on the Price, you'll receive an error

stone void
#

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

swift belfry
#

hmmm, yes thanks the request ID would be great so I can take a closer look

stone void
#

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

swift belfry
#

thanks, taking a look now!

#

could you share the response body to that request? these aren't logged on our side

stone void
swift belfry
#

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)

stone void
#

I see โ€” can I say that the tax rate I set will override the tax_behavior in the price object?

swift belfry
#

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."

stone void
#

I see, thank for the info. I will try it out

swift belfry
#

any time! we're here if you run into any trouble

stone void
#

I have try out. Exactly like what you have describe. Thanks alot for the info