Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.envless.cloud/llms.txt

Use this file to discover all available pages before exploring further.

When it fires

After CreateSubscription writes the subscription row. Typically triggered by the Polar subscription.created webhook handler. The actor is always null — these events are system-driven from the billing provider, not a dashboard user.

Payload

{
    type: 'subscription.created',
    data: {
        subscription: {
            id: string
            status: string                // 'active' | 'trialing' | 'past_due' | 'canceled'
            polarSubscriptionId: string
            polarProductId: string
            currentPeriodStart: string | null
            currentPeriodEnd: string | null
        }
    }
}

Example

{
    "type": "subscription.created",
    "actor": null,
    "data": {
        "subscription": {
            "id": "0192a1b2-c3d4-7000-8000-0000000000c0",
            "status": "active",
            "polarSubscriptionId": "sub_abc123",
            "polarProductId": "prod_xyz789",
            "currentPeriodStart": "2026-05-31T00:00:00.000Z",
            "currentPeriodEnd": "2026-06-30T23:59:59.999Z"
        }
    }
}