Backend BillingSubscriptionItem object - Types | Clerk Docs
Backend BillingSubscriptionItem object
The BillingSubscriptionItem object is similar to the BillingSubscriptionItemResource object as it holds information about a subscription item, as well as methods for managing it. However, the BillingSubscriptionItem object is different in that it is used in the Backend API and is not directly accessible from the Frontend API.
Properties
- Name:
amountType:undefined | BillingMoneyAmountDescription: The current amount for the Subscription Item. - Name:
canceledAtType:null | numberDescription: The Unix timestamp (milliseconds) of when the Subscription Item was canceled. - Name:
createdAtType:numberDescription: The Unix timestamp (milliseconds) of when the Subscription Item was created. - Name:
endedAtType:null | numberDescription: The Unix timestamp (milliseconds) of when the Subscription Item ended. - Name:
idType:stringDescription: The unique identifier for the Subscription Item. - Name:
instanceIdType:stringDescription: The ID of the instance this Subscription Item belongs to. - Name:
isFreeTrialType:booleanDescription: Whether this Subscription Item is currently in a free trial period. - Name:
lifetimePaid?Type: BillingMoneyAmount Description: The lifetime amount paid for this Subscription Item. - Name:
nextPaymentType:undefined | null | { amount: BillingMoneyAmount; date: number; perUnitTotals?: BillingPerUnitTotal[]; totals?: BillingTotals; }Description: Information about the next scheduled payment for this Subscription Item.- Name:
nextPayment.amountType: BillingMoneyAmount Description: The amount of the next payment. - Name:
nextPayment.dateType:numberDescription: The Unix timestamp (milliseconds) of when the next payment is scheduled. - Name:
nextPayment.perUnitTotals?Type:BillingPerUnitTotal[]Description: The per-unit cost breakdown for the next payment. - Name:
nextPayment.totals?Type: BillingTotals Description: The full cost breakdown for the next payment.
- Name:
- Name:
pastDueAtType:null | numberDescription: The Unix timestamp (milliseconds) of when the Subscription Item became past due. - Name:
payerIdType:undefined | stringDescription: The ID of the payer for this Subscription Item. - Name:
periodEndType:null | numberDescription: The Unix timestamp (milliseconds) of when the current period ends. - Name:
periodStartType:numberDescription: The Unix timestamp (milliseconds) of when the current period starts. - Name:
planType:null | BillingPlanDescription: The Plan associated with this Subscription Item. - Name:
planIdType:null | stringDescription: The ID of the Plan associated with this Subscription Item. - Name:
planPeriodType: `