#arvindkgs-balance
1 messages · Page 1 of 1 (latest)
Hi there, do you mean that you want to display the applied balance in the invoice?
If your customer has credit balance (i.e., 5 dollars) and you charge the customer 10 dollars. The customer will be charge 10-5 = 5 dollars, and the invoice will indicate the -5 applied balance.
I noticed that. I also want the current credit balance shown. In your example as $0
I see, you might want to use memo field (aka description) to populate this information if needed https://stripe.com/docs/api/invoices/object#invoice_object-description
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thank you
Only concern was, when I set the memo field with the credit balance on a draft invoice, the balance will not reflect the deduction, as from my understanding the balance only gets updated once the invoice has been finalized.
So do I need to calculate the post invoice balance
Yup, some calculation is needed
see here for details https://stripe.com/docs/billing/customer/balance
Thank you