#kennyjack_api
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/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.
- kennyjack_api, 12 hours ago, 9 messages
- kennyjack_api, 14 hours ago, 40 messages
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 π
hello! can you share your request id and the corresponding response body that you've received for that request?
Is that possible you try out on your end then we compare the result? I wonder will there be any different
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
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
are you saying you see the amount_excluding_tax in the response already?
Yes, I want to double confirm the value in amount_excluding_tax
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?
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?
sure, amount_excluding_tax: 476
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?
oh wait, onesec, i forgot about the coupon, let me try again
amount_excluding_tax: 479 with the coupon
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
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.
Sorry, i didn't see any detailed explanation on this 2 fields. can you point me to that?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thank you. I have another one question
In Singapore, line items must be displayed as tax-exclusive.
- Without the discount, the
amount_excluding_taxis476, but with the discount, it becomes479.
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
Can you share with me the full reponse of the invoice that doesn't have discounts?
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 π
Ok, you are using inclusive tax rate, meaning the price that your set $5 include the GST already.
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?
Yes you are right, tax calculation happens after applying the discounts to subtotal (see https://docs.stripe.com/tax/calculating#discounts-and-tax-calculations)
You can try again with exclusive tax rate (i.e., set inclusive to false) and I think you'll achieve what you want.
But with this method mean I will extra charge the tax on the unit price.
Example my unit price is $5 and i set exclusive tax rate 5% I will charged user $5.25. $0.25 is the tax amount
So I'm not charging user total of $5
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?
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.
Ok, Thanks. I think I've asked all the questions. Thanks you so much for your time