#fundrise_evan
1 messages · Page 1 of 1 (latest)
I believe you would want to look at the due_date field on the Invoice and calculate the number of days since then: https://stripe.com/docs/api/invoices/object#invoice_object-due_date
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
will that work for invoices where collection_method=charge_automatically? I think I saw that for those, the value will be null
Ah, right. Good point. So, in that case you might elect to use period_end on the Invoice instead: https://stripe.com/docs/api/invoices/object#invoice_object-period_end
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ah duh. That makes a ton of sense. Thanks two-shoes!!