API ReferenceEvent Referencesubscription.tier_changed.v1

subscription.tier_changed.v1

Constant

import { EVENT_NAMES } from "@platform/contracts";
 
EVENT_NAMES.SUBSCRIPTION_TIER_CHANGED_V1;

Publishers

No service currently publishes this event.

Subscribers

Payload schema

z.object({
  subscription_id: z.string(),
  customer_id: z.string(),
  previous_plan_id: z.string(),
  new_plan_id: z.string(),
  stripe_subscription_id: z.string(),
  changed_at: z.string().datetime(),
}

Delivery semantics

  • At-least-once delivery. Consumers must dedupe by event ID.
  • Fanned out to both NATS (in-cluster) and EventBridge (durable). See Events concept.