Skip to main content
Fires when an invoice goes past due.

Example

Pass a stable event ID as the third argument, so repeat page loads count as one event. Track it once per invoice. For each failed charge, use payment_failed, which can fire several times for one invoice.

Standard parameters

* Required if you send value or amount.
Send value as well as amount if you want the money owed to show in reports. Upstack’s Invoice Past Due Value measure adds up value. It ignores amount.

User data

* Required if you have it.

Custom data

Examples for this event. See how custom data works.

Stripe webhook

Billing changes usually reach you as webhooks, where window._upstack() isn’t available. Send the event from your server with POST /tr/api/events instead. The API key needs the events:write scope. This Express handler watches Stripe’s customer.subscription.updated event. When the subscription status is past_due, it looks up the subscription’s latest invoice and sends invoice_past_due to Upstack.
Stripe sends customer.subscription.updated for any change to the subscription, so a past-due subscription can trigger the handler more than once. The eventId takes care of that: Upstack skips an event whose eventId it has already seen in the last 30 days, so each invoice is counted once. If you bill with invoices that have a due date instead of automatic charges, Stripe’s invoice.overdue event is the closer match. It fires a set number of days after an invoice’s due date, and you choose the number of days in Stripe’s billing automations. Its payload is the invoice itself, so you can skip the stripe.invoices.retrieve call.

Where it goes

  • Reports. Three measures are available on custom dashboards: Invoice Past Due (count), Invoice Past Due Value, and Cost per Invoice Past Due.
  • Klaviyo. Sent by default as the metric Invoice Past Due - Upstack, so you can start a collection flow from it. See Klaviyo.
  • Meta, Microsoft Ads, PostHog and Reddit. Sent by default as a custom event named invoice_past_due. Meta needs the custom event approved before you can optimize on it. See How to approve Meta custom events.
  • Postscript. Sent by default.
  • Other destinations. Not sent by default. Add it on the destination’s Event Mappings tab with a destination event mapping. LinkedIn, Snapchat, AppLovin, and NewsBreak can’t receive custom events.