#mochihealth
1 messages · Page 1 of 1 (latest)
It would apply to the first one, but since neither invoice actually exists yet the balance would be seen on both I suppose
Once some invoice consumes that balance it would not apply to another
so for showing what the upcoming invoices are
that I understand
but to show upcoming invoices correctly i have to resolve the balances with the times myself?
does the upcoming invoice api take into account subscription schedules
I would expect it to, yes. Are you seeing an unexpected result?
You may need to manage that and re-add the applied balance amount
The upcoming invoice calculation looks only at that one subscription context, it doesnt know about other subscriptions that might use up that balance
what would be the best way to do the diff
is there even a point using the upcoming invoice api in that case
That's up to you. Can you share an example response you get currently?