#mochihealth
1 messages · Page 1 of 1 (latest)
I should also say when I actually test the upgrade it charges the correct amount which is not the one returned from the preview upcoming api
Can you share the request ID (req_xxx) of your upcoming invoice and its response?
how can i get those?
req_JSiSUePs0QaInL
these are the line items
another weird thing is that this product has 3 other prices and it returns the correct amount when I try to upgrade to those other prices of this product
just not this one
The line items included the proration information
yea but the seconde line item doesnt make sense
The first and second line items are of type: invoiceitem whereas the third one is subscription, which the first and second line items are reflected in https://dashboard.stripe.com/test/invoices/in_1NjuU3BPM36OC3gXY2dZSL4C
Can you share what you're trying to do with upcoming invoice API?
Im trying to show how much the customer would be charged if the subscription was upgraded now with proration
it shows that 118 dollars would be charged event though it should only be 39 dollars to upgrade. when I do the upcoming invoice for the 199 dollar 3 month subscription it shows correctly
why does this one have an extra line item
Can you share the full response of the Upcoming Invoice? The total should be the correct amount that the customer will be charged: https://stripe.com/docs/api/invoices/object#invoice_object-total
Not based on your own calculation of the line_items