Checkout
GET /api/polar/checkoutSubscription plan. One of:
pro-lite, pro.Billing cycle. One of:
monthly, yearly.Response 303
Redirects to the Polar checkout URL.
Response 400
Customer portal
GET /api/polar/portalResponse 307
Redirects to the Polar customer portal URL.
Response 400
Webhooks
POST /api/webhooks/dropHandled events
| Event | Action |
|---|---|
subscription.created | Sets user tier to the subscription plan, marks as premium |
subscription.updated | Updates tier and premium status based on subscription state |
subscription.active | Same as subscription.updated |
subscription.canceled | Marks subscription status as canceled (access continues until period end) |
subscription.revoked | Immediately revokes premium access, resets to free tier |
customer.created | Links Polar customer ID to user entitlement |
customer.updated | Updates Polar customer ID |
customer.deleted | Removes Polar customer data, resets to free tier |

