shopify.webhooks.getHandlers

October 2, 2023 ยท View on GitHub

Fetches the configured handlers for the given topic.

Example

const handlers = shopify.webhooks.getHandlers('PRODUCTS_CREATE');
// e.g. handlers[0].deliveryMethod

Parameters

topic

string | :exclamation: required

The topic to search for.

Return

WebhookHandler[]

The list of webhook handlers configured for that topic.

Back to shopify.webhooks