User
Properties
| Property | Type | Description |
|---|---|---|
email | string | Email address of the user. |
paid | boolean | True if the user has comped access, an active lifetime purchase, or a recurring subscription in active, trialing, or past_due status whose current period has not ended. |
trial_available | boolean | True if the user can still start a free trial for this extension. |
plans | UserPlan[] | Array of plans the user has purchased. |
Example
UserPlan
Properties
| Property | Type | Description |
|---|---|---|
id | string | Unique identifier for the tier price. |
name | string | Name of the price, or the tier name when the price does not have its own name. |
billing_cycle | "once" | "monthly" | "yearly" | Billing cycle for this plan. |
price | number | Price in dollars (for example, 19.99). |
status | "active" | "trialing" | "past_due" | "canceled" | "unpaid" | "incomplete" | "incomplete_expired" | "paused" | Current plan status. |
paid_at | string | null | ISO timestamp for when the plan was paid for, or null if not applicable. |
trial_end | string | null | ISO timestamp for when the trial ends, or null if the plan is not trialing. |
period_start | string | null | ISO timestamp for when the current billing period started, or null if not applicable. |
period_end | string | null | ISO timestamp for when the current billing period ends, or null if not applicable. |
canceled_at | string | null | ISO timestamp for when the plan was canceled, or null if not applicable. |
paid can remain true while a subscription is past_due, but only until period_end. If Stripe leaves the subscription past_due after that point, paid becomes false.
Examples
Tier
Properties
| Property | Type | Description |
|---|---|---|
id | string | Unique identifier for the tier. |
name | string | Name of the tier. |
description | string | null | Description of the tier, null if not applicable. |
rank | number | Position of the tier in your pricing structure. |
trial_days | number | null | Number of free trial days for recurring prices, or null if no trial is configured. |
prices | TierPrice[] | Pricing variants for this tier. |
Examples
TierPrice
Properties
| Property | Type | Description |
|---|---|---|
id | string | Unique identifier for the tier price. |
billing_cycle | "once" | "monthly" | "yearly" | Billing cycle for this price. |
price | number | Price in dollars (for example, 19.99). |

