Skip to Content
SDK ReferenceReferenceType AliasesType Alias: WebhookEvent

Type Alias: WebhookEvent

type WebhookEvent = | PaymentWebhookEvent | SubscriptionWebhookEvent;

The payload delivered to your webhook URL. Payment and subscription events share the same { id, type, environment, createdAt, data } envelope; their data shapes differ. Use isSubscriptionWebhookEvent() (or a switch on type) to narrow before reading data.

Last updated on