> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upstackdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# invoice_past_due Event

> Track when an invoice becomes past due.

Fires when an invoice becomes past due. Use this event to trigger collection workflows and identify accounts at risk of involuntary churn.

## JavaScript

```javascript theme={null}
window._upstack('track', 'invoice_past_due', {
  accountId: 'acct_abc123',
  invoiceId: 'inv_ghi012',
  subscriptionId: 'sub_def456',
  amount: 9900,
  currency: 'USD',
  daysOverdue: 7,
  attemptCount: 3
});
```

## Properties

| Property       | Type   | Required | Description                     |
| -------------- | ------ | -------- | ------------------------------- |
| accountId      | string | Yes      | Account identifier              |
| invoiceId      | string | Yes      | Invoice identifier              |
| amount         | number | Yes      | Past due amount in cents        |
| subscriptionId | string | No       | Subscription identifier         |
| currency       | string | No       | ISO 4217 currency code          |
| daysOverdue    | number | No       | Days past the due date          |
| attemptCount   | number | No       | Number of payment attempts made |

## When to Fire

* When invoice due date passes without payment
* When Stripe marks invoice as past due
* When payment retry fails

## Stripe Webhook

Maps to `invoice.marked_uncollectible` or custom logic based on `invoice.payment_failed` status.

<Warning>
  Past due invoices are an early indicator of involuntary churn. Use this event to trigger proactive outreach.
</Warning>
