@bates-solutions/squareup API Reference - v3.2.0
    Preparing search index...

    Interface WebhookEvent<T>

    Base webhook event structure

    interface WebhookEvent<T = unknown> {
        created_at: string;
        data: { id: string; object: T; type: string };
        event_id: string;
        merchant_id: string;
        type: WebhookEventType;
    }

    Type Parameters

    • T = unknown
    Index
    created_at: string

    When the event was created

    data: { id: string; object: T; type: string }

    Event data payload

    Type Declaration

    • id: string

      Unique ID of the object

    • object: T

      The actual object data

    • type: string

      Type of object in the event

    event_id: string

    Unique ID for this event

    merchant_id: string

    Merchant ID that triggered the event

    Type of event