create_webhook_subscription
Subscribe to Shopify events with webhooks via HTTPS, Pub/Sub, or EventBridge, with optional filters and field selection.
Instructions
Create a webhook subscription. Supports HTTPS URLs, Google Pub/Sub topics (pubsub://project:topic), and AWS EventBridge (arn:aws:events:...).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | Yes | Webhook endpoint URI. Can be HTTPS URL, Pub/Sub (pubsub://project:topic), or EventBridge ARN | |
| topic | Yes | Webhook topic (e.g., 'ORDERS_CREATE', 'PRODUCTS_UPDATE', 'APP_UNINSTALLED') | |
| filter | No | Filter expression using Shopify search syntax (e.g., 'type:lookbook') | |
| includeFields | No | Specific fields to include in webhook payload (limits payload size) | |
| metafieldNamespaces | No | Metafield namespaces to include in webhook payload |