create_webhook
Set up webhooks to receive real-time POST notifications for WooCommerce events like order.created, product.updated, and coupon.deleted.
Instructions
Create a webhook. Topic format: 'resource.event' (e.g. 'order.created', 'product.updated', 'coupon.deleted'). Resources: order, product, customer, coupon. Events: created, updated, deleted, restored.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"topic": "<topic>",
"delivery_url": "<delivery_url>"
},
"name": "create_webhook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Webhook name (for identification) | |
| topic | Yes | Event topic (e.g. 'order.created', 'product.updated', 'customer.deleted') | |
| fields | No | Comma-separated fields to return in response | |
| secret | No | Secret key for HMAC-SHA256 signature verification | |
| status | No | Webhook status | active |
| delivery_url | Yes | URL to receive the webhook POST payload |