Clerk billing events and webhooks
Clerk billing supports webhook events that allow you to track information like subscription lifecycles and payments.
Subscriptions
A subscription is a top-level container unique to each user or organization. Subscription events can help you track billing changes for each of your customers.
Subscription items
A subscription item provides details about the relationship between the payer (user or organization) and a plan. A top-level subscription may contain multiple subscription items.
There can only be one active
subscription item per payer and plan. In addition, the subscription item for the default plan will always have the same id
to allow easier tracking of which users and organizations are not paid customers.
Payment attempts
Payment attempts allow you to track successful and failed payments, for both checkout and recurring charges.
Payment attempt events contain a type
, which can be either checkout
or recurring
. You can use these values to determine whether a payment attempt was for a checkout or a subscription item renewal's recurring charge.
Feedback
Last updated on