Create webhook
create_webhookCreate a webhook to receive real-time notifications for order status, payment status, and delivery status changes. Requires an HTTPS endpoint; returns a one-time signing secret for secure payload verification.
Instructions
Create a new webhook. The url must use HTTPS (HTTP is rejected). Allowed events: ORDER_STATUS_CHANGED, ORDER_PAYMENT_STATUS_CHANGED, ORDER_DELIVERY_STATUS_CHANGED. IMPORTANT: the response contains the signing secret — it is shown ONLY ONCE, store it securely. Call get_operation_schema("CreateWebhook") for the exact request shape.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| webhook | Yes | Webhook record matching the CreateWebhookRequest schema (see get_operation_schema("CreateWebhook")). Required: url (HTTPS only), events. |