absolutepay (Node SDK) - v0.7.1
    Preparing search index...

    Interface WebhookEvent<T>

    A delivered callback event — the JSON body the platform POSTs to your callback URL.

    Known WebhookEvent.type values include payment.succeeded, charge.refunded, payout.settled, payout.partial, and payout.failed. Always obtain this via constructEvent so the signature is verified before you trust the payload.

    interface WebhookEvent<T = Record<string, unknown>> {
        data: T;
        id: string;
        type: string;
    }

    Type Parameters

    Index

    Properties

    Properties

    data: T

    Event-specific payload (the object that changed). Type it via the generic T for the events you handle.

    id: string

    Unique event id — use it to de-duplicate deliveries (the same event may arrive more than once).

    type: string

    Event type, e.g. "payment.succeeded", "charge.refunded", "payout.settled", "payout.partial", "payout.failed".