Skip to content

Subscription.pastDue

A Subscription moved to pastDue because its renewal Invoice went overdue.

PropertyValue
Raised byNo Verb: a state change raises it
NounSubscription
MovesCustomer activated to atRisk when the Subscription is this Customer’s; Customer wonBack to atRisk when the Subscription is this Customer’s; Subscription enters pastDue
WakesNone.

Payload

Each delivery is an Event record. data holds the Subscription as it stands, and previous holds the state it left.

FieldTypeRequiredDescription
namestringrequiredSubscription.pastDue.
atdatetimerequiredWhen it happened.
seqintegerIts position in the namespace, one more than the Event before; any seq is a cursor into the history.
datajsonrequiredThe Thing as the Action left it.
data.subscriptionSubscriptionrequiredThe Subscription as the change left it.
data.subscription.statusstringrequiredOne of active, trialing, pastDue, paused, incomplete, or canceled.
data.subscription.renewsAtdatetimeWhen it next renews.
data.subscription.quantityintegerHow many units of the Offer’s Price it holds, such as 12 members; 1 by default.
data.subscription.trialEndsAtdatetimeWhen a trial ends and the first paid period starts.
data.subscription.termEndsAtdatetimeWhen a committed term ends; the Renewal and the renewal notice read it.
data.invoiceInvoicerequiredThe overdue renewal Invoice.
data.previous.statusstringrequiredThe status before this Event: active.

Example

JSON
{
  "$id": "https://api.sb/leaseline.app/events/evt_CwB5zLwM7w",
  "$type": "Event",
  "name": "Subscription.pastDue",
  "at": "2026-10-14T08:05:00Z",
  "data": {
    "subscription": {
      "$id": "https://api.sb/leaseline.app/subscriptions/sub_4xPEwq1XG4",
      "$type": "Subscription",
      "status": "pastDue",
      "renewsAt": "2026-10-13T08:00:00Z",
      "quantity": 1,
      "trialEndsAt": "2026-04-27T08:00:00Z",
      "termEndsAt": "2026-10-13T08:00:00Z"
    },
    "invoice": {
      "$id": "https://api.sb/leaseline.app/invoices/inv_9sfvgeRT7L",
      "$type": "Invoice",
      "total": {
        "amount": 99,
        "currency": "USD"
      },
      "due": "2026-10-01"
    },
    "previous": {
      "status": "active"
    }
  },
  "seq": 83
}