Stripe Invoices automatically_finalizes_at
PlannedConnector name: Stripe
Table name: Invoices
Column to add: automatically_finalizes_at
API documentation link: https://docs.stripe.com/api/invoices/object
Additional details: This field is the only way to differentiate a draft pending for finalization from a draft that will remain a draft, then is the only field that can help us to differentiate Bookings (Revenue considered in advanced prior to invoice finalization) than just tests invoices (drafts without future finalized_at).
Without this field, is impossible to differentiate between useful and tests draft invoices.
-
Official comment
Hi Nicolas,
This makes sense as an addition to the Stripe connector. I'll add it to our backlog and prioritize it. Stay tuned here for updates about when it's available.
Best,
Sadie Martin
-
Hi Nicolas,
Following up on this one. While automatically_finalizes_at is still on our backlog, I wanted to share a couple of columns already in your STRIPE.INVOICE table. They may let you separate real draft invoices from test drafts in the meantime:
- AUTO_ADVANCE: when this is TRUE on a draft invoice, Stripe will finalize it automatically. Those are the same drafts that would have an automatically_finalizes_at value. Drafts with AUTO_ADVANCE = FALSE stay drafts until someone finalizes them manually.
- LIVEMODE: FALSE for invoices created in Stripe test mode, so you can exclude those entirely.
- STATUS_TRANSITIONS_FINALIZED_AT: the finalization timestamp, once a draft has actually been finalized.For example, to find upcoming bookings:
SELECT id, customer_id, created, amount_due, auto_advance
FROM stripe.invoice
WHERE status = 'draft'
AND auto_advance = TRUE
AND livemode = TRUE;The main thing this doesn't give you is the exact scheduled finalization time.
Could you try this and let us know whether it covers your bookings use case? If you need the exact timestamp, for example to forecast when revenue will land, tell us and we'll keep the column request prioritized.
Best,
Sadie -
Hi Fivetran team, sorry I was off for some weeks.
I checked this today and the logic of the auto_advance = TRUE looks solid and passed my tests.We still need the automatically_finalizes_at, but the auto_advance solves one of the problems
1. For ARR / Revenue Reporting we use the period_start and period_end from the invoice items, at the moment I deployed a fix to include invoices with status = draft and auto_advance = true, this is the booked revenue but pending to be billed.
2. For Financial bookings timing and revenue forecasts, we still need the finalization time, as that is when we can count it toward financial bookings, for this we still need the automatically_finalizes_at.
Thanks for your help,
Please sign in to leave a comment.
Comments
3 comments