#Eranga-invoice
1 messages · Page 1 of 1 (latest)
Hi there, yes you are correct, ending_balance is the balance after the invoice has been finalised taking into account the changes made during the draft phase.
Nice
starting_balance is the customer balance before invoice has been finalised
Got it, thanks. I have another query. What is the easiest way to get the latest invoice of a customer (or a subscription - because our customers has only one subscription at a time)
When you retrieve the Subscription, there's a field latest_invoice that provides the InvoiceId of the most recent invoice https://stripe.com/docs/api/subscriptions/object#subscription_object-latest_invoice
Nice, thank you 😊