Skip to content

Subscription

One subscription, as far as recurring revenue goes.

amount: number

What it bills each interval, in minor units: price times quantity, after lasting discounts. Leave usage-based prices out of it (there’s no fixed amount to count).


optional canceling?: boolean

Set to end at the period’s close: still paying now, but leaving.


currency: string


id: string


interval: BillingInterval


optional intervalCount?: number

Every intervalCount intervals: 3 with month is quarterly.


status: "active" | "canceled" | "trialing" | "past-due" | "paused"