Subscription.resized
Emitted each time a Subscription is resized.
Subscription.resize emits Subscription.resized when it completes on a Subscription.
| Property | Value |
|---|---|
| Emitted by | Subscription.resize |
| Noun | Subscription |
| Wakes | None. |
Payload
Each delivery is an Event record. data holds what Subscription.resize returns.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | required | Subscription.resized. |
at | datetime | required | When it happened. |
seq | integer | Its position in the namespace, one more than the Event before; any seq is a cursor into the history. | |
data | json | required | The Thing as the Action left it. |
data.subscription | Subscription | required | The Subscription at its new quantity. |
data.subscription.status | string | required | One of active, trialing, pastDue, paused, incomplete, or canceled. |
data.subscription.renewsAt | datetime | When it next renews. | |
data.subscription.quantity | integer | How many units of the Offer’s Price it holds, such as 12 members; 1 by default. | |
data.subscription.trialEndsAt | datetime | When a trial ends and the first paid period starts. | |
data.subscription.termEndsAt | datetime | When a committed term ends; the Renewal and the renewal notice read it. |
Example
{
"$id": "https: //api.sb/ routewise.dev/ events/ event_1",
"$type": "Event",
"name": "Subscription.resized",
"at": "2026-10-22T12: 00: 00Z",
"data": {
"subscription": {
"$id": "https: //api.sb/ routewise.dev/ subscriptions/ subscription_1",
"$type": "Subscription",
"status": "active",
"renewsAt": "2026-10-22T12: 00: 00Z",
"quantity": 1,
"trialEndsAt": "2026-10-22T12: 00: 00Z",
"termEndsAt": "2026-10-22T12: 00: 00Z"
}
},
"seq": 1
}