Commet
  • Pricing
Log InTry out
Introducción

Eventos de Suscripción

subscription.createdsubscription.activatedsubscription.canceledsubscription.updatedsubscription.plan_changed

Eventos de Pago

payment.receivedpayment.failed

Eventos de Recibo

invoice.created
DocumentaciónRecursosConstruir con AIAPI ReferenceWebhooks

subscription.created

Se dispara cuando se crea una nueva suscripción

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"
  }
}

¿Cómo está esta guía?

Introducción

Recibe notificaciones en tiempo real cuando ocurren eventos en tu cuenta de Commet.

subscription.activated

Se dispara cuando una suscripción se activa después del pago