#tymm

1 messages · Page 1 of 1 (latest)

vast nacelleBOT
sudden iris
#

Which fields are you looking at?

soft field
#

"subtotal_excluding_tax" and "total"

sudden iris
#

Hmm, they're both 1600?

soft field
#

total is 1110

sudden iris
#

Ah, sorry. I was looking at:

"subtotal_excluding_tax": 1600,```
#

Subtotal does not include any discounts and/or tax applied. Seems there's a 550 discount and a tax amount of 60.

#

Seems to add up!

#

1600-550+60=1110

soft field
#

hmmm i dont get how stripe come up with the final amount tho

#

i have 1 item in the subscription MYR10, backdated to sept 1, set to the billing cycle anchor of oct1, so theoritically its MYR 10 x 2

#

with a 6% of tax (1.20) and 1 additional invoice item that costs MYR 1, total = 22.20
like what i did in this request : req_i2x9oba3pEdQRW
the response : https://pastebin.com/QHDGH6TY

#

and then i add a 50% coupon onto the same request, i get a 11.10 total...
shouldnt it be
20 x 0.5 = 10
10 x 0.06 = 0.6
additional invoice item = 1
10 + 0.6 + 1 = 11.06 ?

#

im expecting a 1000 in discount not 550

#

also why is it 1600 haha im confused

sudden iris
#

There's a prorated item for 500.

soft field
#

?

sudden iris
#

Look at the respnse. There's more items than you've accounted for which is likely why the total is higher than you expect

soft field
#

the 2 responses are from these 2 requests req_i2x9oba3pEdQRW and req_Nj0gZpAS0zYB65
and their only difference is one has coupon and the other doesnt, why are there more things in the invoice after applying coupon?

sudden iris
#

I'm looking at req_Nj0gZpAS0zYB65

soft field
#

ok sorry i think i see that the additional invoice item is also discounted due to the coupon was not set properly.

#

thank you