
Webhook setup
Webhook lets you receive notifications from amoCRM about lead changes and sync order statuses.
Webhook URL
The URL to configure in amoCRM is shown on the Settings tab in the component CMP. Format:
https://site.com/assets/components/amoconnector/webhook.php?secret=YOUR_SECRETThe secret is generated on install and stored in amoconnector.webhook_secret.
Setup in amoCRM
- Go to Settings → Integrations → your integration
- In the Webhook block enter the URL from CMP
- Enable events:
- Lead status change
Reverse status sync
When a webhook is received for a lead stage change:
- Secret is verified
- Linked ms2 order is found via
amo_order_link - Reverse mapping amoCRM stage → ms2 status is looked up
- Order status is updated
Reverse sync requires:
- amoconnector.sync_statuses_from_amo enabled
- Status mapping configured in CMP
- Site reachable over HTTPS
Внимание
Webhook is processed synchronously (server-to-server) and does not go through Scheduler even if it is enabled. This is intentional — webhook does not affect site user experience.
