#tymm
1 messages · Page 1 of 1 (latest)
Which fields are you looking at?
"subtotal_excluding_tax" and "total"
Hmm, they're both 1600?
total is 1110
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
Total of all subscriptions, invoice items, and prorations on the invoice before any invoice level discount or exclusive tax is applied. Item discounts are already incorporated
https://stripe.com/docs/api/invoices/object#invoice_object-subtotal
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
There's a prorated item for 500.
?
Look at the respnse. There's more items than you've accounted for which is likely why the total is higher than you expect
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?
I'm looking at req_Nj0gZpAS0zYB65