#Moichi
1 messages · Page 1 of 1 (latest)
I think you can listen to the invoice.updated webhook event to catch when an Invoice is changed, and probably look for latest_revision
So you say I handle this in a extra webhook event? Because this still won't be a part of a API call collecting all by a date range.
I was suggesting to use webhook to see if you can utilize latest_revision. It seems that you are calling List Invoice, with status != draft, and created_at for current month?
Sorry I think we don't have such a convenience updated property. I will forward your feedback internally. For the meantime, the only option is tracking the status change via the invoice.updated event yourself, in your own database, then when you make the report call, reference from your saved database too
OK thank you. It would be pretty cool if the API just provides updated_at as a part of the serializer inside the list controller. Then my life would be easy 🙂
Save those data into my own database I would like to prevent for data privacy reasons. We chose stripe as payment platform to not keep any payment data inside our saas app.
Yep but how about a simple DB like: Invoice Id , Updated timestampt, status
Agree would be nice if Stripe provide it, but I think it's a simple 3 columns that doesn't have much of sensitive information. The Id doesn't tell anything
Agree that it is a simple list but in this case i have to deal with compliance storing those data, that is the reason i like to prevent it. But I will think about it and look into it. thanks for your suggestion