serge-pro-dev

bitrix24

by serge-pro-dev
payload-plugins
Third-party services
v4
^4.0.0-beta.12
MIT

Overview

Summary generated from the README

Adds a Bitrix24 integration block to each form in the Payload form builder plugin. Submissions are sent to Bitrix24 CRM through an incoming webhook as leads or deals, with automatic and manual field mapping. Delivery can run synchronously or through Payload Jobs with retries. Requires Payload 4 and the form builder plugin.

Features

  • Creates leads or deals, with a linked contact automatically created for deals
  • Automatic mapping of standard form fields such as name, email, phone and company
  • Manual mapping to standard and custom UF_CRM fields loaded from the Bitrix24 API
  • Sends UTM data from first-touch or last-touch cookies to the standard UTM fields
  • Optional queue delivery with retries and duplicate protection via origin IDs
  • Webhook host allowlist for self-hosted Bitrix24 and a logged-in-only field endpoint

Use cases

  • Forward website contact form submissions to Bitrix24 as new leads
  • Create deals with linked contacts from order or inquiry forms
  • Track marketing attribution by passing UTM data into CRM records

From the author

Bitrix24 CRM integration for Payload CMS 4 form builder submissions: leads, deals, field mapping, UTM, optional queue delivery.

Installation

npm i @serge-pro-dev/payload-plugin-bitrix24

0

Stars

0

Forks

0

Open Issues

Yesterday

Last Updated

456

Weekly Downloads

v0.1.0-beta.1

npm Version

120.8 KB

Unpacked Size

1

Dependencies

Repository stars

Trends appear once the first and last snapshots are 7 days apart. Collecting since Nov 29 — 7 daily snapshots so far.

Shared by 6 plugins in serge-pro-dev/payload-plugins.

npm weekly downloads

Trends appear after 7 days of data. Collecting since Dec 4 — 2 daily snapshots so far.

Each point is npm's rolling 7-day download count.

Health Score

76/100Excellent

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/1479182369-bitrix24.svg)](https://payloaddirectory.dev/plugins/1479182369-bitrix24)
HTML
<a href="https://payloaddirectory.dev/plugins/1479182369-bitrix24"><img src="https://payloaddirectory.dev/badge/1479182369-bitrix24.svg" alt="Payload Directory"></a>
Updated Dec 4, 2026Created Dec 1, 2026Published Dec 3, 2026

README

@serge-pro-dev/payload-plugin-bitrix24

Русская версия

Sends Payload CMS 4 form submissions (form builder plugin) to Bitrix24 CRM through an incoming webhook. Settings are stored per form.

Bitrix24 Integration

Install

pnpm add @serge-pro-dev/payload-plugin-bitrix24
// payload.config.ts: after formBuilderPlugin
import { bitrix24Plugin } from '@serge-pro-dev/payload-plugin-bitrix24'

plugins: [formBuilderPlugin(/* ... */), bitrix24Plugin()]

Then run pnpm payload generate:importmap (registers the field picker of the admin panel) and pnpm payload generate:types.

Features

  • Creates leads (Lead) or deals (Deal, with an automatically created and linked contact).
  • Maps standard form fields automatically; any other field can be mapped by hand.
  • Loads standard and custom CRM fields (UF_CRM_*) from Bitrix24 into the admin panel.
  • Sends UTM data to the standard UTM fields.
  • Puts all unmapped values into the CRM comments.
  • Optional queue delivery with retries and duplicate protection, see delivery.

Setup

1. Create the webhook in Bitrix24

Developer resources → Other → Inbound webhook (in the Russian UI: «Разработчикам → Другое → Входящий вебхук»). In permission settings («Настройка прав») you must enable CRM (crm). Without it Bitrix24 answers "The request requires higher privileges than provided by the webhook token" and neither the field list nor the delivery works.

2. Configure the form

Open a form → block Bitrix24 → + Add Bitrix24 Integration (one integration per form).

FieldPurpose
EnabledOn by default. Switch off to pause sending without deleting the settings
Bitrix24 Webhook URLIncoming webhook of the portal (required)
CRM Entity TypeLead (default) or Deal
Automatically map standard fieldsMap standard field names automatically
Send UTM / UTM AttributionSend UTM data, First Touch or Last Touch
Additional SettingsManual field mapping

Automatic mapping

Form field names: name, firstName, lastName, secondName, email, phone, company, website. Email, Phone and Website use the matching Bitrix24 multi-field types.

Manual mapping

Form Field Name is the system name of the form field, Bitrix24 Field is picked from a list loaded from the Bitrix24 API (read-only fields are excluded). Save the form first, the list needs a saved webhook. Manual mappings win over automatic ones.

UTM

Reads the utm_first_touch / utm_last_touch cookie and fills UTM_SOURCE, UTM_MEDIUM, UTM_CAMPAIGN, UTM_CONTENT, UTM_TERM. A missing cookie is not an error.

The plugin only reads the cookie. Something on the site has to write it: <UtmTracker /> from @serge-pro-dev/payload-plugins-shared/utm/next, the analytics plugin, or your own script that follows the contract.

Options

OptionPurpose
delivery'sync' (default) or 'queue' (Payload Jobs)
queuePayload Jobs queue name, default default
allowedHostsExtra allowed webhook hosts (self-hosted Bitrix24): crm.example.com or *.example.com
timeoutMsTimeout of every Bitrix24 request, default 8000

BITRIX24_ALLOWED_HOSTS (comma separated) is merged with allowedHosts.

Delivery, timeouts, retries

sync sends inside the form request, queue uses Payload Jobs with retries. Requests time out after 8 s. In queue mode every item is created with ORIGINATOR_ID / ORIGIN_ID, so a retry does not create a duplicate lead.

Security

  • The webhook is stored in the form, used only on the server and never sent to the browser.
  • The field-list endpoint (/api/bitrix24/fields) requires a logged-in Payload user.
  • Only https URLs on Bitrix24 cloud domains are accepted; for self-hosted Bitrix24 use BITRIX24_ALLOWED_HOSTS or bitrix24Plugin({ allowedHosts }). Redirects are refused.
  • Webhook fields are readable and editable only by logged-in users.

Admin language

Labels are available in English and Russian. Enable both in the project: i18n: { supportedLanguages: { en, ru } }.

Database

New columns/tables appear with the schema: forms_bitrix24 (the integration row). In development schema push applies them; in production run pnpm payload migrate:create and migrate.

Sending runs in afterChange of form-submissions (only on create).

Not implemented

Products and catalog, shop orders, two-way sync, outgoing webhooks from Bitrix24.

MIT

Similar plugins