#thomas-upcoming-invoice

1 messages · Page 1 of 1 (latest)

final sailBOT
lavish merlin
#

You can, generally, but yes any pending changes will be reflected in that upcoming invoice

#

You want to ignore pending changes?

viral tide
#

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.

lavish merlin
#

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.

viral tide
#

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?

fallen fog
#

thomas-upcoming-invoice

low ledge
#

@viral tide do you have an Invoice ID we can look at to see this behavior?

viral tide
#

Are you able to look up req_4aYhjNk4RLrU9F?

low ledge
#

Yeah, taking a look now