create_webhook
Set up webhooks to receive real-time notifications for MoySklad entity events (CREATE, UPDATE, DELETE, PROCESSED). Configure the callback URL, event action, and entity type to monitor.
Instructions
Register a new webhook for entity events (CREATE/UPDATE/DELETE/PROCESSED).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Webhook callback URL (must be HTTPS) | |
| action | Yes | Which entity action triggers the webhook | |
| diffType | No | For UPDATE webhooks: NONE (default) or FIELDS to receive changed fields | |
| entityType | Yes | Entity type to watch, e.g. 'customerorder', 'product', 'demand', 'counterparty' |