Skip to main content
Polar sends one webhook event per change in your organization. Each payload has a type, such as order.paid, a timestamp and the changed object in data, shaped by the endpoint’s API version. Select a card for the full payload schema. Not sure which to pick? For granting and revoking access, customer.state_changed alone is usually enough: it carries the customer’s active subscriptions, granted benefits and meter balances. See Customer state. For fulfilling one-time purchases, use order.paid.

Billing events

Checkout

checkout.created

Sent when a Checkout Session is created.

checkout.updated

Sent when a Checkout Session changes, including when its status becomes succeeded.

checkout.expired

Sent when a Checkout Session expires without being completed.

Customers

customer.created

Sent when a customer is created.

customer.updated

Sent when a customer is updated.

customer.deleted

Sent when a customer is deleted.

customer.state_changed

Sent when a customer’s state changes. Includes active subscriptions, granted benefits and active meters.

Subscriptions

To track a subscription’s full lifecycle, listen to these events. The sequences below show how they combine.

subscription.created

Sent when a subscription is created. Its status might not be active yet while the first payment is processed.

subscription.active

Sent when a subscription becomes active, for a new paid subscription or after a payment is recovered.

subscription.uncanceled

Sent when a customer undoes a cancellation scheduled for the end of the period.

subscription.cycled

Sent when a subscription enters a new billing period, before the renewal order exists and whether or not the payment succeeds.

subscription.canceled

Sent when a subscription is canceled. The customer might keep access until the end of the current period.

subscription.past_due

Sent when a subscription payment fails. The customer can recover by updating their payment method.

subscription.updated

A catch-all, sent along with subscription.active, subscription.canceled, subscription.uncanceled, subscription.cycled, subscription.past_due, subscription.revoked, subscription.paused, subscription.resumed and subscription.migrated. Use it to handle every change in one place.

subscription.revoked

Sent when a subscription ends and the customer loses access: at the end of a canceled period, on immediate revocation, or when payment retries are exhausted.

subscription.paused

Sent when a scheduled pause takes effect at the end of the period. Billing stops and benefits are revoked until the subscription resumes.

subscription.resumed

Sent when a paused subscription resumes. A new billing period starts and the customer is charged immediately.

subscription.migrated

Sent when Polar takes over billing of a subscription migrated from another provider. Includes provider and provider_subscription_id. Doesn’t send subscription.created or subscription.active.

Cancellation sequences

When a subscription is canceled, the events triggered depend on whether the cancellation is immediate or scheduled for the end of the billing period. End-of-period cancellation (default) When a subscription is canceled (by customer action from the portal or by you from the dashboard or API), the following events are sent immediately:
  1. subscription.updated
  2. subscription.canceled
Both events contain the same subscription data. The subscription is still active, with cancel_at_period_end set to true. At the end of the billing period, the subscription is revoked: billing stops and benefits are revoked. These events follow:
  1. subscription.updated
  2. subscription.revoked
Both events contain the same subscription data. The subscription is now canceled. Immediate revocation When you cancel a subscription with immediate revocation, these events are sent at once:
  1. subscription.updated
  2. subscription.canceled
  3. subscription.revoked
All three events contain the same subscription data. The subscription is canceled immediately.

Renewal sequences

When a subscription renews, events arrive in two steps: the new period starts, then the payment is processed. Initial renewal events When a subscription reaches its renewal date, these events are sent immediately, if the endpoint subscribes to them:
  1. subscription.cycled
  2. subscription.updated
  3. order.created
subscription.cycled fires only on a new billing period, so you can act on a renewal without inspecting billing_reason on the order. It also fires when a trial converts to a paid subscription, since that starts a period too: read status to tell the two apart. The subscription shows the new period in current_period_start and current_period_end. The order is the invoice for the new period. With usage-based billing, its total includes usage from the past period. Its status is pending at this stage. Payment processing events Shortly after, Polar charges the customer for the new order. Once the payment is successfully processed, the following events are sent:
  1. order.updated
  2. order.paid
Both events contain the same order, now with status paid.

Pause sequences

Pausing is scheduled for the end of the current billing period, much like an end-of-period cancellation. When a subscription is paused (by customer action from the portal or by you from the dashboard or API), only one event is sent immediately, because the subscription stays active until the period ends:
  1. subscription.updated
The pause_at_period_end flag is set to true, and resumes_at holds the scheduled resume date if you set one. When the end of the current billing period arrives, the pause takes effect: billing stops and benefits are revoked. The following events are then sent:
  1. subscription.updated
  2. subscription.paused
Both events contain the same subscription data, now with the paused status. Resume When a paused subscription resumes, either immediately when you resume it or automatically on its resumes_at date, a new billing period starts and the customer is charged right away. The following events are sent:
  1. subscription.updated
  2. subscription.resumed
  3. order.created
The subscription data reflects the new period through current_period_start and current_period_end, and the order represents the immediate charge for the new cycle.

Migration sequences

When Polar takes over billing of a subscription imported from another provider, these events are sent at cutover:
  • subscription.updated
  • subscription.migrated
  • customer.state_changed
  • benefit_grant.created, for any benefits attached to the product (seat-based products grant them when seats are claimed)
  • customer.updated, if Polar sets the copied card as the customer’s default payment method
Polar enqueues subscription.updated before subscription.migrated, but delivery order isn’t guaranteed. subscription.migrated carries provider and provider_subscription_id so you can match the Polar subscription to the source. Polar doesn’t send subscription.created, subscription.active, or subscription.resumed for this path. A subscription already set to cancel at the end of its period arrives with cancel_at_period_end set, and gets subscription.canceled and subscription.revoked when that period ends.

Orders

order.created

Sent when an order is created, for a purchase, a new subscription, a renewal or an upgrade with an immediate proration invoice. billing_reason is purchase, subscription_create, subscription_cycle, subscription_update or subscription_meter_cycle. The order might still be pending.

order.paid

Sent when an order is paid. Use it to fulfill purchases.

order.updated

Sent when an order changes, for example from pending to paid, or when it’s refunded.

order.refunded

Sent when an order is fully or partially refunded.
To act on a renewal, listen to subscription.cycled rather than order.created: it fires whether or not the renewal payment succeeds.

Refunds

refund.created

Sent when a refund is created, whatever its status.

refund.updated

Sent when a refund is updated.

Benefit grants

benefit_grant.created

Sent when a customer is granted a benefit.

benefit_grant.cycled

Sent when a grant renews because its subscription started a new period.

benefit_grant.updated

Sent when a grant is updated.

benefit_grant.revoked

Sent when a grant is revoked.

Seats

For seat-based pricing.

customer_seat.assigned

Sent when you assign a seat. The customer gets an email invitation to claim it.

customer_seat.claimed

Sent when a customer accepts the invitation and claims the seat.

customer_seat.revoked

Sent when a seat is revoked, by you or automatically when the subscription is canceled.

Members

Members are the individuals within a team customer. These events have no dedicated reference page yet. Their payload is the Member object.
  • member.created: a member is added to a customer, through the API or as the owner of a new customer.
  • member.updated: a member’s details change, such as their name or role.
  • member.deleted: a member is removed from a customer. Their active seats are revoked.

Organization events

Benefits

benefit.created

Sent when a benefit is created.

benefit.updated

Sent when a benefit is updated.

Products

product.created

Sent when a product is created.

product.updated

Sent when a product is updated.

Discounts

discount.created

Sent when a discount is created.

discount.updated

Sent when a discount is updated.

discount.deleted

Sent when a discount is deleted.

Organization

organization.updated

Sent when your organization’s details or settings change.

Learn more