#amy-invoice-balance
1 messages · Page 1 of 1 (latest)
so applied balance should be starting_balance - ending_balance I think
amy-invoice-balance
right, I think that equation does not work in the case where a credit note is added to an invoice.
example:
invoice for $10
customer's initial balance is $1 so they should apply it
merchant adds credit note for $10
the applied balance ends up being $0 because stripe will basically "unapply" the balance.
ending_balance and starting_balance will not get updated either, so if you use them you'll still see the $1 difference
I find this really unintuitive because there's no property that directly tells me that $0 was applied after all. there's also no property that says "$1 was applied but then $1 put back into the customer balance later"
I think this may be the reason why the Stripe Dashboard's version of the Invoice has a separate "applied_balance" key that tells you how much was really applied
ah yeah that's possible. @limber folio is going to take over but seems like a feature request we;ll never get to ;p
stripe dot com slash jobs................
anyway the invoice ID i pasted above is the representative example - i basically wanted an easy way to reach $0.25 and was sad that the stripe dashboard has a property showing 25 cents but i can't access it myself