Commet
  • Pricing
Log InTry out
Introduction

Subscription Events

subscription.createdsubscription.activatedsubscription.canceledsubscription.updatedsubscription.plan_changed

Payment Events

payment.receivedpayment.failed

Invoice Events

invoice.created
DocumentationKnowledge BaseBuild with AIAPI ReferenceWebhooks

subscription.created

Fired when a new subscription is created

Payload

All webhook payloads follow a consistent top-level structure with event-specific data nested within the data object.

subscriptionIdstring

The subscription ID.

customerIdstring

The customer ID. Returns your externalId if you provided one when creating the customer, otherwise returns the Commet publicId.

externalIdstring

Your external ID for this customer. Only included if you set an externalId when creating the customer.

planIdstring

The plan ID.

planNamestring

The plan name.

statusstring

Current status. One of: draft, pending_payment, trialing, active, paused, past_due, canceled, expired. Grant access only when trialing or active.

startDatestring | null

ISO 8601 datetime when the subscription starts.

namestring | null

Optional custom name for the subscription.

{
  "event": "subscription.created",
  "timestamp": "2026-03-25T14:30:00.000Z",
  "organizationId": "org_abc123",
  "data": {
    "subscriptionId": "sub_1a2b3c4d",
    "customerId": "user_123",
    "externalId": "user_123",
    "planId": "plan_pro_monthly",
    "planName": "Pro",
    "status": "pending_payment",
    "startDate": "2026-03-25T14:30:00.000Z",
    "name": "Acme Corp"
  }
}

How is this guide?

Introduction

Receive real-time notifications when events happen in your Commet account.

subscription.activated

Fired when a subscription becomes active after payment