API ReferenceEvent Referencesubscription.created.v1

subscription.created.v1

Constant

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

Publishers

Subscribers

Payload schema

z.object({
  subscription_id: z.string(),
  customer_id: z.string(),
  plan_id: z.string(),
  stripe_subscription_id: z.string(),
  current_period_start: z.string().datetime(),
  current_period_end: z.string().datetime(),
  created_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.