Skip to main content

Community

Stripe Invoices automatically_finalizes_at

Planned

Please sign in to leave a comment.

Comments

2 comments

  • 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