#archmaze.
1 messages · Page 1 of 1 (latest)
You can view the invoice events in your Dashboard page.
my case is when invoice.paid webhook event is triggered i need to check the previous invoice status of that invoice and if it was uncollectible then i have to further processing
OK, you can check the event's previous_attributes https://stripe.com/docs/api/events/object#event_object-data-previous_attributes
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
i'm getting undefined on event.data.previous_attributes
what's the event ID?
There are no previous events before this event
and that's why its previous_attributes is empty
@heavy blaze @heavy blaze hello
i was just resending the old webhook event... let me try with new one
@hot reef please ask in the #dev-help channel and we will create a thread for you, thanks
evt_1OZ5XzF8tiMhHfPbWkjmGtiQ
check on this event please
sorry my bad... i'll add more event to webhook
@hot reef : This thread is for @obsidian finch. Please do not continue your question here. Please ask in #dev-help channel and we will create a thread for you
@hot reef We will not be able to respond to you if you continue posting in this thread instead of asking in main channel #dev-help
it seems i need to look into invoice.updated for the previous_attribute right ?
If you're looking for the changes, then yes - previous_attribute should be used
thankyou