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

    Interface CreateWebhookSubscriptionOptions

    Options for creating a webhook subscription.

    interface CreateWebhookSubscriptionOptions {
        apiVersion?: string;
        enabled?: boolean;
        eventTypes: string[];
        idempotencyKey?: string;
        name: string;
        notificationUrl: string;
    }
    Index
    apiVersion?: string

    Square API version used to serialize events (defaults to the app's version)

    enabled?: boolean

    Whether the subscription is enabled (default true)

    eventTypes: string[]

    Event types to subscribe to, e.g. ['payment.updated', 'order.updated']

    idempotencyKey?: string
    name: string

    A name for the subscription

    notificationUrl: string

    The URL Square will POST events to