#allianceRes
1 messages · Page 1 of 1 (latest)
👋 happy to help
what is the use-case here?
is this what you're looking for https://stripe.com/docs/billing/subscriptions/overview#unpaid-subscriptions ?
I have this sub: sub_1LykUcGfA2lQACd19q7EIMfi
I just paid all invoices and status still unpaid.
i thought it will be automatically switch to Active
looking into that
as you can see there are still 2 draft invoices https://dashboard.stripe.com/test/subscriptions/sub_1LykUcGfA2lQACd19q7EIMfi
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I see but we cant pay them?
I want to undrestand in such case how we can switch the sub to Active
why?
because when user pay all its last invoices, we want to Activate its sub
if the customer pays the due invoices the subscription will automatically go back to active
sorry still trying to figure out what happened here
👋 stepping in here
Catching up
So we discuss this here: https://stripe.com/docs/billing/subscriptions/overview#unpaid-subscriptions
if you want to re-activate the Sub you have to manually finalize those invoices and then pay them
it seems that it is not easy to go from unpaid status to past_due status.
If in our configuration we keep sub always in past_due status when user does not pay their invoices. in this case the subscription switches to the active state automatically if the customer pays all these old invoices?
Yes a Sub will always become active if all invoices are paid
Why do you want to keep it in past_due in this case?
we have this sub: sub_1LykUcGfA2lQACd19q7EIMfi
it still unpaid even after I paid all invoices
Did you read the link I provided above?
For unpaid subscriptions, the latest invoice remains open but payments aren’t attempted. The subscription continues to generate invoices each billing cycle and remains in draft state. To reactivate the subscription, you need to:
Collect new payment information.
Turn automatic collection back on by setting auto advance to true on draft invoices.
Finalize, then pay the open invoices. Pay the most recent invoice before its due date to update the status of the subscription to active.
So your most recent invoice is still in draft
It would need to be finalized and paid for the Sub to become active
that's why I'm asking if we keep the subscription in past_due status
we will not have invoices in draft status so, as soon as the customer pays his invoices, the subscription switches to Active automatically
Why do you want that though? I'm sorry, I'm not understanding you. If all invoices are paid, why have it be past_due?
because we dont want to manage draft invoices
in this sub_1LykUcGfA2lQACd19q7EIMfi we have 2 invoices in draft status and we don't know how to manage them. so we are looking for an easy way to move our sub to Active
We are kind of going in circles here. The only way to send the Sub to active is to handle those draft invoices. There is no way to move the Sub straight to past_due with your current settings. The alternative here is to change your settings here: https://dashboard.stripe.com/settings/billing/automatic. You would set If all retries for a payment fail to "leave Sub as is"
Then your Sub would remain in past_due as opposed to moving to unpaid
cool!
So when we change our settings to keep Sub remain in past_due, all invoices will remain in past_due?
Invoices would continue to be generated and would be open, yes.
Invoices don't have a "past_due" status
See Invoice statuses here: https://stripe.com/docs/api/invoices/object#invoice_object-status
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.