Skip to main content

Backend BillingSubscriptionItem object

Important

Billing regularly introduces new features and UI changes to Clerk's components. If you'd like to remain on a specific version of Clerk's components or SDK, you can follow the steps in the pinning documentation.

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
    amount
    Type
    undefined | BillingMoneyAmount
    Description

    The current amount for the Subscription Item.

  • Name
    canceledAt
    Type
    null | number
    Description

    The Unix timestamp (milliseconds) of when the Subscription Item was canceled.

  • Name
    createdAt
    Type
    number
    Description

    The Unix timestamp (milliseconds) of when the Subscription Item was created.

  • Name
    endedAt
    Type
    null | number
    Description

    The Unix timestamp (milliseconds) of when the Subscription Item ended.

  • Name
    id
    Type
    string
    Description

    The unique identifier for the Subscription Item.

  • Name
    isFreeTrial?
    Type
    boolean
    Description

    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
    nextPayment
    Type
    undefined | null | { amount: number; date: number; }
    Description

    Information about the next scheduled payment for this Subscription Item.

  • Name
    nextPayment.amount
    Type
    number
    Description

    The amount of the next payment.

  • Name
    nextPayment.date
    Type
    number
    Description

    The Unix timestamp (milliseconds) of when the next payment is scheduled.

  • Name
    pastDueAt
    Type
    null | number
    Description

    The Unix timestamp (milliseconds) of when the Subscription Item became past due.

  • Name
    payerId
    Type
    undefined | string
    Description

    The ID of the payer for this Subscription Item.

  • Name
    periodEnd
    Type
    null | number
    Description

    The Unix timestamp (milliseconds) of when the current period ends.

  • Name
    periodStart
    Type
    number
    Description

    The Unix timestamp (milliseconds) of when the current period starts.

  • Name
    plan
    Type
    null | BillingPlan
    Description

    The Plan associated with this Subscription Item.

  • Name
    planId
    Type
    null | string
    Description

    The ID of the Plan associated with this Subscription Item.

  • Name
    planPeriod
    Type
    "month" | "annual"
    Description

    The period of the Plan associated with this Subscription Item.

  • Name
    status
    Type
    BillingSubscriptionItemStatus
    Description

    The status of the Subscription Item.

  • Name
    updatedAt
    Type
    number
    Description

    The Unix timestamp (milliseconds) of when the Subscription Item was last updated.

Feedback

What did you think of this content?

Last updated on