#damenz_api

1 messages ¡ Page 1 of 1 (latest)

snow charmBOT
safe sandBOT
#

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.

snow charmBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1247339188009963551

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

ripe leaf
#

530.71 * 0.05 = 26.5355

a normal round(26.5355, 2) results in 26.54, but stripe rounds it down to 26.53

#

I feel crazy not being able to match same total breakdown on my app...

#

It should be technically so simple, but everytime I think I got it, I then find another of my tests doesnt match

#

what am I doing wrong?

grim shell
#

The tax is calculated at line level, then sum it up, not the tax on the total pre-tax amount

ripe leaf
#

How would that reflect in this scenario?

#

Line item values sent are exactly whats shown here

#

can you explain how that would work in my current scenario?

#

Because I don't see how stripe can round this differently since I an sending line item values exactly as shown on my left example

grim shell
#

I'm still computing how this is calculated in your invoice as yours also has discounts

#

ii_1PNkW2J0nXpjeNpF8Z2nC4Uz

Discount = amount_off from Coupon LkbRt7zl x proportional_ratio = 56.70 x (20.41 - 0) / (20.41 - 0 + 567.00 - 0) = 1.97
Amount after discounts = 18.44
Tax = tax_rate x taxable = 5% x 18.44 = 0.92

ii_1PNkW1J0nXpjeNpFIeF06hRH

Discount = amount_off from Coupon LkbRt7zl x proportional_ratio = 56.70 x (111.00 - 0) / (111.00 - 0 + 476.41 - 0) = 10.71
Amount after discounts = 100.29
Tax = tax_rate x taxable = 5% x 100.29 = 5.01

ii_1PNkW1J0nXpjeNpFx21p5Yw5

Discount = amount_off from Coupon LkbRt7zl x proportional_ratio = 56.70 x (456.00 - 0) / (456.00 - 0 + 131.41 - 0) = 44.01
Amount after discounts = 411.99
Tax = tax_rate x taxable = 5% x 411.98 = 20.60

Total tax = 0.92 + 5.01 + 20.60 = 26.53