#Kido-invoices
1 messages · Page 1 of 1 (latest)
@fresh lagoon invoice.updated, and to do it in the API, it's https://stripe.com/docs/api/invoices/mark_uncollectible
oh wait sorry you mean subscriptions
then it's customer.subscription.updated. And you can't force a subscription to be unpaid directly
it becomes unpaid when the latest invoice has had all retries fail,as per the settings on that page
ok is there any article that i can go through because its kinda confuse like how it works
like what will happen
https://stripe.com/docs/billing/subscriptions/overview is the closest but it can be confusing unfortunately yes!
what are we looking at if we want to know whether a subscription is unpaid?
subscription status?
yep! the status field of the object https://stripe.com/docs/api/subscriptions/object#subscription_object-status
when it changes you get a customer.subscription.updated event where it has that status and the previous_attributes (https://stripe.com/docs/api/events/object#event_object-data-previous_attributes) show it changed from something else
right that's what i need