Javascript Types BillingSubscriptionItemResource
BillingSubscriptionItemResource
The BillingSubscriptionItemResource type represents an item in a subscription.
Name amount?Type BillingMoneyAmountDescription The amount charged for the subscription item.
Name cancelType (params: { orgId?: string; }) => Promise<DeletedObjectResource >Description A function to cancel the subscription item. Accepts the following parameters:
orgId? (string): The ID of the organization to cancel the subscription item from.
Name canceledAtType null | DateDescription The date and time when the subscription item was canceled. null if the subscription item is not canceled.
Name createdAtType DateDescription The date and time when the subscription item was created.
Name credit?Type { amount: BillingMoneyAmount ; }Description The credit from a previous purchase that is being applied to the subscription item.
Name credit.amountType BillingMoneyAmountDescription The amount of credit from a previous purchase that is being applied to the subscription item.
Name idType stringDescription The unique identifier for the subscription item.
Name isFreeTrialType booleanDescription Whether the subscription item is for a free trial.
Name pastDueAtType null | DateDescription The date and time when the subscription item became past due. null if the subscription item is not past due.
Name pathRootType stringDescription The root path of the resource.
Name paymentMethodIdType stringDescription The unique identifier for the payment method being used for the subscription item.
Name periodEndType null | DateDescription The date and time when the current billing period ends. null if not set.
Name periodStartType DateDescription The date and time when the current billing period starts.
Name planType BillingPlanResourceDescription The plan associated with the subscription item.
Name planPeriodType "month" | "annual"Description The billing period for the subscription item.
Name statusType "active" | "ended" | "upcoming" | "past_due"Description The status of the subscription item.
Last updated on Oct 21, 2025