#kennyjack_api

1 messages Β· Page 1 of 1 (latest)

stuck umbraBOT
#

πŸ‘‹ 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/1423152723389583401

πŸ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

sturdy sandal
#

Hi, this is the screenshot above i get from the stripe documentation. I would like to know what the amoun_excluding_tax value on each line item πŸ™

rotund crow
#

hello! can you share your request id and the corresponding response body that you've received for that request?

sturdy sandal
#

Is that possible you try out on your end then we compare the result? I wonder will there be any different

rotund crow
#

When you say I would like to know what the amoun_excluding_tax value on each line item - I'm assuming that you're not seeing this in the response

Without knowing what you're passing in your request, what you're receiving for the response, it's going to be difficult for me to help

sturdy sandal
#

I'm seeing the response. I based on the screenshot line item and setup exactly
Here the request id req_yfTtKLNPRzZ7DK for line item 1

rotund crow
#

are you saying you see the amount_excluding_tax in the response already?

sturdy sandal
#

Yes, I want to double confirm the value in amount_excluding_tax

rotund crow
#

then can you share the response body you received - we don't save the response body for successful GET requests

also, it sounds like you're expecting a different value from what you saw / received in the response body - what was the amount you expected to see instead and why?

sturdy sandal
#

Understand that stripe doesn't save the response body for successful GET requests.

But will you try out on your end with the same setup based on the screenshot?

rotund crow
#

sure, amount_excluding_tax: 476

sturdy sandal
#

I see, really thanks alot for your effort. πŸ™
But i'm getting amount_excluding_tax: 479
Could you help to check why i'm getting different value with yours?

rotund crow
#

oh wait, onesec, i forgot about the coupon, let me try again

#

amount_excluding_tax: 479 with the coupon

sturdy sandal
#

Can i know what the definition of amount_excluding_tax & unit_amount_excluding_tax ?

#

My understanding it should not factor in the discount. By right should be 476

stuck umbraBOT
meager spade
#

Hi @sturdy sandal I'm taking over this thread.

#

The unit_amount_excluding_tax is the amount_excluding_tax in unit decimal string (i.e., the type is string instead of number), which support amounts with up to 12 decimal places of precision. In your case unit_amount_excluding_tax and amount_excluding_tax are the same because no decimal is involved.

#

You can read to the API reference for detailed explanation.

sturdy sandal
#

Sorry, i didn't see any detailed explanation on this 2 fields. can you point me to that?

meager spade
sturdy sandal
#

Thank you. I have another one question

#

In Singapore, line items must be displayed as tax-exclusive.

  • Without the discount, the amount_excluding_tax is 476, but with the discount, it becomes 479.

From a user’s point of view, isn’t it strange to be charged more after applying a discount?

I've read through the explanation and was having doubt that amount_excluding_tax need to excluding discounts too

meager spade
#

Can you share with me the full reponse of the invoice that doesn't have discounts?

sturdy sandal
#

Sure a moment

#

req_tttMfMX8k5A8vA

#

Also based on the definition The integer amount in cents representing the amount for this line item, excluding all tax and discounts.

By right it should exclude tax & discount which should get amount_excluding_tax = 476. Please correct me if i'm wrong πŸ™

meager spade
#

Ok, you are using inclusive tax rate, meaning the price that your set $5 include the GST already.

sturdy sandal
#

Meaning if I'm using inclusive tax rate, Stripe Tax applies discounts to the original amount first. Then, recalculate taxes based on the remaining amount. This reduction has the side effect of reducing the tax amount due.

And because of amount_excluding_tax will exclude tax amount therefore amount_excluding_tax somehow already factor in the discount on the tax level

Am I correct?

meager spade
#

You can try again with exclusive tax rate (i.e., set inclusive to false) and I think you'll achieve what you want.

sturdy sandal
#

Is there a way or flag that make the inclusive tax rate not to applies discounts to the original amount first and recalculate taxes based on the remaining amount?

meager spade
#

No, the tax calculation logic doesn't change, regardless whether it's using inclusive / exclusive tax rate.

You'll need to decide how much you want to charge your user and whether you want to include tax in the amount.

sturdy sandal
#

Ok, Thanks. I think I've asked all the questions. Thanks you so much for your time