#smilelari-customer-balances
1 messages · Page 1 of 1 (latest)
When you're referring to "unpaid balance", is your expectation that any unpaid invoice for a subscription would also be considered an "unpaid balance"?
Or are you specifically talking about if the customer has a negative customer credit balance?
Any unpaid invoice for a subscription
Gotcha - then your suggestion of checking the balance property on the customer object won't work. Instead, you'll need to retrieve all the invoices for a customer that are still unpaid (https://stripe.com/docs/api/invoices/list#list_invoices-status) to see if there are any that are still due
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ah! Thank you. After that, what is the best way to submit the payment for the invoices that are unpaid?
You would call the API to pay the invoice - https://stripe.com/docs/api/invoices/pay
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.