#kirito - unpaid invoices
1 messages · Page 1 of 1 (latest)
Hello, can you tell me a bit more about what you are trying to do here? Was this the same kind of decline across your invoices or are you asking if there is a general way to approach this?
I'm let say that there is a user created a subscription and paid for the first month, but the payment for the 2nd , 3rd, 4th month has all failed (automatic payment), the user come back and want to continue use our service on the 5th month, but before that we want him to pay for the 2nd, 3rd, 4th, The solution I cam with is to show the user a custom page to update his user information, and I want that he will immediately get charged for all unpaid invoice from before , what stripe api call or method should I use for that.
Ah gotcha, for that you can use the invoice pay call once you have the payment method saved on your backend 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.
kirito - unpaid invoices
then will the other invoice automatically be paid ?
No, so you will need to call that on each outstanding invoice
I understand thank you
How to get all unpaid invoice of subscription
We have status and subscription filters on our list invoices endpoint so you can filter by both and get all unpaid invoices for that subscription https://stripe.com/docs/api/invoices/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
which invoice status should I look for : draft, open, paid, uncollectible, or void
It depends on your business needs, but typically open will be what you want
That means finalized (not drafts) and not yet paid
The others aren't used unless you configure your integration to use them
I understand thank you.
what event should I use for subscription default payment method update ?
On the subscription itself? That would lead to customer.subscription.updated
is there not a specific one for only payment method ? I thought that a better solution would be any time subscription payment method update work, I check the status of the subscription and see if it's not active then look for all the invoice in this subscription and try to pay theme using the new payment method.