Bitrix24 event queues do not automatically retry failed requests. If a server is unavailable during a deployment or error, events are lost without appearing in logs. Developers should use offline events to ensure reliable delivery, as these allow the portal to store changes until the integration is ready to process them.
When using offline events, developers should reserve batches using a process_id to prevent data loss during worker failures. Unconfirmed batches remain on the portal for up to 30 days. It is also critical to handle duplicate events, as the same deal might be processed multiple times if not properly tracked by ID.
Standard pagination using the start parameter can lead to missed records if data is modified during the export process, causing shifts in the result set. Using ID-based filtering with start: -1 is more efficient and avoids these shifts. Additionally, developers must handle data type conversions, as Bitrix24 returns numbers as strings.
Security risks arise when webhooks are tied to specific users. If an administrator is dismissed, webhooks may stop working or remain active under a system user. OAuth tokens require careful management; refreshing them based on a schedule can lead to blocks, so tokens should only be updated upon expiration using a centralized lock mechanism.




