Interface CreateWebhookData

Data for creating a webhook

interface CreateWebhookData {
    address: string;
    api_version?: string;
    fields?: string[];
    format?: "json";
    metafield_namespaces?: string[];
    private_metafield_namespaces?: string[];
    topic: WebhookTopic;
}

Properties

address: string

Webhook address (URL)

api_version?: string

API version to use

fields?: string[]

Fields to include in the payload

format?: "json"

Format of the data sent

metafield_namespaces?: string[]

Metafields to include in the payload

private_metafield_namespaces?: string[]

Private metafields to include in the payload

Webhook topic