Server-sent Event Types
Use this page as the single source of truth for event types across all SDKs. SDK docs should reference these event keys.Event Envelope (canonical)
All events share the same envelope shape, matching the server’sSseEventData<T>:
Event Types
Event Payloads
CONNECTION_ESTABLISHED
This event is sent when a client successfully connects to the Server-sent event stream. Thedata object for this event is always empty.
SUBSCRIPTION_UPDATED
Thedata object for a SUBSCRIPTION_UPDATED event contains the following fields:
customer_subscription_id(UUID): The unique identifier for the customer’s subscription.customer_id(String): Your internal identifier for the customer.product_id(String): The identifier for the product associated with the subscription.status(SubscriptionStatus): The current status of the subscription.
PAYMENT_UPDATED
Thedata object for a PAYMENT_UPDATED event contains the following fields:
customer_subscription_id(UUID): The unique identifier for the customer’s subscription.customer_id(String): Your internal identifier for the customer.product_id(String): The identifier for the product associated with the subscription.status(PaymentStatus): The outcome of the payment attempt.reason(BillingReason): The reason for the payment attempt.
Enums
SubscriptionStatus
ACTIVECANCELEDINCOMPLETEPAST_DUEUNPAIDEXPIRED
PaymentStatus
SUCCESSACTION_REQUIREDFAILED
BillingReason
SUBSCRIPTION_CREATESUBSCRIPTION_CYCLESUBSCRIPTION_UPDATESUBSCRIPTION_THRESHOLDMANUALUNKNOWN