#thomas-upcoming-invoice
1 messages · Page 1 of 1 (latest)
You can, generally, but yes any pending changes will be reflected in that upcoming invoice
You want to ignore pending changes?
yes
Basically I want to know what the recurring cost of this subscription is, including discounts.
I was considering using subscription_items instead of subscription and just pass the items. But then the issue I'm having is passing in the coupon. Some of my subscriptions have a deleted coupon, and the upcoming invoice endpoint does not support passing in coupon data or a deleted coupon ID.
Hm. I think you're on the right track with the items.
What might be best is a non-user facing coupon you keep for testing/checking with the same discount applied
The upcoming endpoint for the existing subscription wont be a good fit here because it tries to represent whats going to be invoivced next, including those pending items.
Right now I am thinking of using the upcoming invoice items with subscription passed, subscription_proration_behavior=none (so that I always get the full recurring cost), and then manually get the relevant subscription item from the list and use its amount minus discount_amounts.
I also believe there is a bug. The invoice line items have the same amount as amount_excluding_tax, even though there is automatic tax. See for example, req_4aYhjNk4RLrU9F, which returns the invoice item for "5 seat \u00d7 Basic Plan (at $69.00 / month)" , but amount and amount_excluding_tax are both equal to 34500, which is the amount excluding tax. tax_amounts however correctly includes a tax. Shouldn't amount therefore be the sum of amount_excluding_tax plus the tax amounts?
thomas-upcoming-invoice
@viral tide do you have an Invoice ID we can look at to see this behavior?
Are you able to look up req_4aYhjNk4RLrU9F?
Yeah, taking a look now
I believe that is because the tax is set to exclusive, meaning it is not included in the subtotal. If you look at the amount for that invoice in the Dashboard, you'll see that the actual total is $73.55 (e.g. 69 + 4.55): https://dashboard.stripe.com/test/invoices/in_1LzQsvBSqAkKUXpQByhU9IJN
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.