• handle will validate webhook message origin and verify signature of the message and calls corresponding handlers passed in.

    Parameters

    • body: string | Record<string, unknown>

      The request body to a webhook endpoint in json string or js object form.

    • env: config.Environment

      The Immutable environment the webhook is set up for.

    • Optional handlers: WebhookHandlers

      The optional handlers object for different events. The all handler will be triggered for all event types.

    Returns Promise<any>

    The event object from the webhook message after validation and verification.

Generated using TypeDoc