Integration

The plugin can be integrated with any website or other system. There are ready-made plugins for popular CMS. Non-standard integrations can be implemented by your programmer, instructions are described below.
Need help with integration, you need to expand the plugin's functionality, or have other questions - https://cp.flamix.solutions/.

Integration secret token

TOKEN

Complex scenarios

The implementation of the complex logic of any entity (Lead, Deal, Contact, etc.) is carried out through Business Processes or Robots. It is recommended to entrust these works to the official partners of Bitrix24.

Ready integrations

Integration

It is necessary to send data (POST or GET request) to the URL https://leadwp-pay.app.flamix.solutions/api/v1/lead/add
Parameters for transfer:

array:8 [ // resources/views/integrations/instructions/general.blade.php
  "DOMAIN" => "Portal domain, for example test.bitrix24.com"
  "api_token" => "Integration secret token"
  "TRACE" => "Tracing from Bitrix24 widget (optional)"
  "UF_CRM_FX_CONVERSION" => "User ids (for plugin - https://flamix.solutions/bitrix24/conversion.php), optional"
  "UTM" => array:2 [
    "utm_source" => "google (non required)"
    "utm_campaign" => "new_year (non required)"
  ]
  "FIELDS" => array:4 [
    "your-name" => "Roman (All fields are OPTIONAL)"
    "your-phone-example" => "1234567890 (undergoes additional cleaning, validation, formatting and is involved in finding duplicates)"
    "your-email" => "test@test.com (participates in finding duplicates)"
    "other" => "other fields (optional)"
  ]
  "CURRENCY_ID" => "Currency code (RUB, USD, UAH), default portal currency"
  "PRODUCTS" => array:2 [
    0 => array:4 [
      "NAME" => "Product 1"
      "PRICE" => 150
      "FIND_BY" => "NAME"
      "QUANTITY" => 2
    ]
    1 => array:7 [
      "NAME" => "Product 1"
      "PRICE" => 1000
      "QUANTITY" => 2
      "TAX_RATE" => 15
      "TAX_INCLUDED" => "N"
      "DISCOUNT_SUM" => 100
      "DISCOUNT_TYPE_ID" => "1 - Sum, 2 - Percent"
    ]
  ]
]

Product search

If you need to add an existing product, you must pass the FIND_BY field in each product with the code for searching for the product. For example, if you need to search for products by name, then we pass it like this:

array:4 [ // resources/views/integrations/instructions/general.blade.php
  "NAME" => "Product 1"
  "PRICE" => 150
  "FIND_BY" => "NAME"
  "QUANTITY" => 2
]

An example of searching for the CODE field. In this case, the field with the code "test_2222" will be found. If it does not exist, add a product with an automatically generated name:

array:4 [ // resources/views/integrations/instructions/general.blade.php
  "PRICE" => 1500
  "FIND_BY" => "CODE"
  "CODE" => "test_2222"
  "QUANTITY" => 2
]
List of fields to search
array:244 [ // resources/views/integrations/instructions/general.blade.php
  "ID" => "ID"
  "CATALOG_ID" => "Каталог"
  "PRICE" => "Цена"
  "CURRENCY_ID" => "Валюта"
  "NAME" => "Название"
  "CODE" => "CODE"
  "DESCRIPTION" => "Описание"
  "DESCRIPTION_TYPE" => "Тип описания"
  "ACTIVE" => "Активен"
  "SECTION_ID" => "Раздел"
  "SORT" => "Сортировка"
  "VAT_ID" => "Ставка НДС"
  "VAT_INCLUDED" => "НДС включён в цену"
  "MEASURE" => "Единица измерения"
  "XML_ID" => "Внешний код"
  "PREVIEW_PICTURE" => "Картинка для анонса"
  "DETAIL_PICTURE" => "Детальная картинка"
  "DATE_CREATE" => "Дата создания"
  "TIMESTAMP_X" => "Дата изменения"
  "MODIFIED_BY" => "Кем изменён"
  "CREATED_BY" => "Кем создан"
  "PROPERTY_560" => "Форм-фактор"
  "PROPERTY_314" => "Сумма оценок"
  "PROPERTY_316" => "Ключевые слова"
  "PROPERTY_318" => "Мета-описание"
  "PROPERTY_522" => "Новинка"
  "PROPERTY_562" => "Материал"
  "PROPERTY_322" => "Новинка"
  "PROPERTY_324" => "Лидер продаж"
  "PROPERTY_326" => "Спецпредложение"
  "PROPERTY_524" => "Лидер продаж"
  "PROPERTY_564" => "Особенности"
  "PROPERTY_328" => "Артикул"
  "PROPERTY_330" => "Производитель"
  "PROPERTY_332" => "Материал"
  "PROPERTY_334" => "Цвет"
  "PROPERTY_526" => "Спецпредложение"
  "PROPERTY_566" => "Дизайн"
  "PROPERTY_168" => "Штрихкод"
  "PROPERTY_336" => "Картинки товара"
  "PROPERTY_338" => "ID поста блога для комментариев"
  "PROPERTY_340" => "Количество комментариев"
  "PROPERTY_342" => "Фоновая картинка для шаблона"
  "PROPERTY_344" => "ШтрихКод"
  "PROPERTY_346" => "Артикул"
  "PROPERTY_348" => "Характеристики"
  "PROPERTY_350" => "Реквизиты"
  "PROPERTY_352" => "Базовая единица"
  "PROPERTY_354" => "Ставки налогов"
  "PROPERTY_356" => "Картинки товара"
  "PROPERTY_358" => "Файлы"
  "PROPERTY_360" => "Производитель"
  "PROPERTY_528" => "Видео"
  "PROPERTY_568" => "Тип"
  "PROPERTY_924" => "[Integration] Test XML_ID"
  "PROPERTY_530" => "С этим товаром покупают (блок внизу)"
  "PROPERTY_570" => "Вид"
  "PROPERTY_532" => "Материал"
  "PROPERTY_572" => "Диагональ дисплея"
  "PROPERTY_534" => "Цвет"
  "PROPERTY_574" => "Назначение"
  "PROPERTY_536" => "Фоновая картинка для шаблона"
  "PROPERTY_576" => "Тип коннектора 1"
  "PROPERTY_538" => "Срок выполнения"
  "PROPERTY_578" => "Тип коннектора 2"
  "PROPERTY_540" => "Количество комментариев"
  "PROPERTY_580" => "Длина"
  "PROPERTY_542" => "ID поста блога для комментариев"
  "PROPERTY_582" => "Тип"
  "PROPERTY_544" => "Картинки галереи"
  "PROPERTY_584" => "Назначение"
  "PROPERTY_546" => "Оплачивать период простоя"
  "PROPERTY_586" => "Особенности"
  "PROPERTY_548" => "Демо период"
  "PROPERTY_588" => "Вид разъема"
  "PROPERTY_550" => "Шаблон покупки"
  "PROPERTY_590" => "Max A (USB)"
  "PROPERTY_552" => "Ф-ункция обработки (покупка, продление и т.д.)"
  "PROPERTY_592" => "Выходные разъемы"
  "PROPERTY_554" => "Название на сайте"
  "PROPERTY_594" => "Количество USB выходов, шт"
  "PROPERTY_556" => "Характеристики (ссылка)"
  "PROPERTY_596" => "Дополнительное питание"
  "PROPERTY_558" => "Цена до"
  "PROPERTY_598" => "Поддерживаемый стандарт карт памяти"
  "PROPERTY_600" => "Интерфейс подключения"
  "PROPERTY_602" => "Совместимость"
  "PROPERTY_604" => "Количество USB-портов"
  "PROPERTY_606" => "Вид"
  "PROPERTY_608" => "Выходной ток"
  "PROPERTY_610" => "Быстрая зарядка"
  "PROPERTY_612" => "Выходной разъем"
  "PROPERTY_614" => "Особенности"
  "PROPERTY_616" => "Питание"
  "PROPERTY_618" => "Количество заряжаемых устройств, шт"
  "PROPERTY_620" => "Тип подключения"
  "PROPERTY_622" => "Тип головки"
  "PROPERTY_624" => "Количество секций"
  "PROPERTY_626" => "Вес, кг"
  "PROPERTY_628" => "Комплектация"
  "PROPERTY_630" => "Дополнительные характеристики"
  "PROPERTY_632" => "Максимальная высота съемки"
  "PROPERTY_634" => "Минимальная высота съемки"
  "PROPERTY_636" => "Максимальная нагрузка (кг)"
  "PROPERTY_638" => "Головка в комплекте"
  "PROPERTY_640" => "Съемная головка"
  "PROPERTY_642" => "Рекомендуемая нагрузка"
  "PROPERTY_644" => "Длина в сложенном состоянии"
  "PROPERTY_646" => "Тип корпуса"
  "PROPERTY_648" => "Материал"
  "PROPERTY_650" => "Объём памяти"
  "PROPERTY_652" => "Интерфейс"
  "PROPERTY_654" => "Стандарт памяти"
  "PROPERTY_656" => "Класс"
  "PROPERTY_658" => "Диапазон емкости, mAh"
  "PROPERTY_660" => "Емкость, mAh"
  "PROPERTY_662" => "Технология"
  "PROPERTY_664" => "Подходит для зарядки"
  "PROPERTY_666" => "Переходники в комплекте"
  "PROPERTY_668" => "Тип батареи"
  "PROPERTY_670" => "Материал"
  "PROPERTY_672" => "Заряжается от"
  "PROPERTY_674" => "Выход USB1"
  "PROPERTY_676" => "Тип зарядки"
  "PROPERTY_678" => "Выход USB2"
  "PROPERTY_680" => "Комплектация"
  "PROPERTY_682" => "Выходное напряжение"
  "PROPERTY_684" => "Особенности"
  "PROPERTY_686" => "Тип гаджета"
  "PROPERTY_688" => "Материал"
  "PROPERTY_690" => "Тип часов"
  "PROPERTY_692" => "Материал корпуса"
  "PROPERTY_694" => "Версия Bluetooth"
  "PROPERTY_696" => "Встроенная память"
  "PROPERTY_698" => "Тип дисплея"
  "PROPERTY_700" => "Совместимые ОС"
  "PROPERTY_702" => "Цвет ремешка"
  "PROPERTY_704" => "Материал ремешка"
  "PROPERTY_706" => "Время работы"
  "PROPERTY_708" => "Для кого"
  "PROPERTY_710" => "Форма часов"
  "PROPERTY_712" => "Размер корпуса, мм"
  "PROPERTY_714" => "Сменный ремешок"
  "PROPERTY_716" => "Сенсорный экран"
  "PROPERTY_718" => "Тип связи"
  "PROPERTY_720" => "Интерфейс подключения"
  "PROPERTY_722" => "Датчики"
  "PROPERTY_724" => "Год"
  "PROPERTY_726" => "Карта памяти"
  "PROPERTY_728" => "Цвет корпуса"
  "PROPERTY_730" => "Особенности часов"
  "PROPERTY_732" => "Диагональ дисплея"
  "PROPERTY_734" => "Операционная Система"
  "PROPERTY_736" => "Материал"
  "PROPERTY_738" => "Кабель"
  "PROPERTY_740" => "Тип наушников"
  "PROPERTY_742" => "Интерфейс проводного подключения"
  "PROPERTY_744" => "Тип подключения"
  "PROPERTY_746" => "Вид"
  "PROPERTY_748" => "Тип"
  "PROPERTY_750" => "Диапазон частот наушников"
  "PROPERTY_752" => "Сопротивление наушников"
  "PROPERTY_754" => "Чувствительность наушников"
  "PROPERTY_756" => "Дополнительные возможности"
  "PROPERTY_758" => "Тип микрофона"
  "PROPERTY_760" => "Конструкция микрофона"
  "PROPERTY_762" => "Направленность микрофона"
  "PROPERTY_764" => "Наличие активного шумоподавления"
  "PROPERTY_766" => "Назначение"
  "PROPERTY_768" => "Длина шнура"
  "PROPERTY_770" => "Форма штекера"
  "PROPERTY_772" => "Порт зарядки"
  "PROPERTY_774" => "Поддержка карт памяти"
  "PROPERTY_776" => "Bluetooth"
  "PROPERTY_778" => "Тип колонок"
  "PROPERTY_780" => "Формат акустики"
  "PROPERTY_782" => "AUX"
  "PROPERTY_784" => "Питание"
  "PROPERTY_786" => "Материал"
  "PROPERTY_788" => "Размеры"
  "PROPERTY_790" => "Выходная мощность"
  "PROPERTY_792" => "Диапазон частот"
  "PROPERTY_794" => "Материал корпуса"
  "PROPERTY_796" => "Дополнительно"
  "PROPERTY_798" => "Интерфейсы"
  "PROPERTY_800" => "Количество одновременных Bluetooth-соединений"
  "PROPERTY_802" => "Особенности"
  "PROPERTY_804" => "Комплект"
  "PROPERTY_806" => "Тип"
  "PROPERTY_808" => "Штрихкод"
  "PROPERTY_810" => "Гарантия"
  "PROPERTY_812" => "Маржа"
  "PROPERTY_814" => "Max A (Wireless)"
  "PROPERTY_816" => "Артикул нкейс"
  "PROPERTY_818" => "Максимальная скорость"
  "PROPERTY_820" => "Номинальная мощность"
  "PROPERTY_822" => "Макс. запас хода"
  "PROPERTY_824" => "Вес самоката"
  "PROPERTY_826" => "Материал рамы"
  "PROPERTY_828" => "Материал ручек"
  "PROPERTY_830" => "Тип шин"
  "PROPERTY_832" => "Шины"
  "PROPERTY_834" => "Диаметр колес"
  "PROPERTY_836" => "Макс. рекомендуемая нагрузка"
  "PROPERTY_838" => "Емкость батареи"
  "PROPERTY_840" => "Производитель батареи"
  "PROPERTY_842" => "Время полной зарядки"
  "PROPERTY_844" => "Мощность зарядки"
  "PROPERTY_846" => "Тип батареи"
  "PROPERTY_848" => "Крепление батареи"
  "PROPERTY_850" => "Водонепроницаемость"
  "PROPERTY_852" => "Крепление ручек"
  "PROPERTY_854" => "Подножка"
  "PROPERTY_856" => "Расходники для крепления"
  "PROPERTY_858" => "Год производства"
  "PROPERTY_860" => "Время складывания"
  "PROPERTY_862" => "Передний свет"
  "PROPERTY_864" => "Задний свет"
  "PROPERTY_866" => "Габаритный свет"
  "PROPERTY_868" => "Мотор-колесо"
  "PROPERTY_870" => "Задний тормоз"
  "PROPERTY_872" => "Передний тормоз"
  "PROPERTY_874" => "Размер в разложенном виде"
  "PROPERTY_876" => "Размер в сложенном виде"
  "PROPERTY_878" => "Размер в упаковке"
  "PROPERTY_880" => "Рекомендуемый возраст пользователя"
  "PROPERTY_882" => "Цвет"
  "PROPERTY_884" => "Другие предложения товара (блок цветов)"
  "PROPERTY_886" => "Совместимость"
  "PROPERTY_888" => "Хит"
  "PROPERTY_890" => "Рекомендуем"
  "PROPERTY_892" => "Бесплатная доставка"
  "PROPERTY_894" => "Категория блока на главной"
  "PROPERTY_896" => "Количество проголосовавших"
  "PROPERTY_898" => "Рейтинг"
  "PROPERTY_900" => "Изображения"
  "PROPERTY_902" => "Артикул"
  "PROPERTY_904" => "Бренд"
  "PROPERTY_906" => "Дополнительные товары (ползунки в блоке цены)"
  "PROPERTY_908" => "Похожие товары (блок справа)"
  "PROPERTY_910" => "Реклама"
  "PROPERTY_912" => "Новинка"
  "PROPERTY_914" => "Склад"
  "PROPERTY_916" => "Promo_price_rozetka"
]

Status sync

To synchronize statuses, you must initially pass the value specified below in the <b>FIELDS field</b> when creating an entity. This will link the created entity to a specific order from the site.

array:5 [ // resources/views/integrations/instructions/general.blade.php
  "DOMAIN" => "Portal domain, for example test.bitrix24.com"
  "api_token" => "Integration secret token"
  "HOSTNAME" => "yuorshopdomain.com"
  "ORDER_ID" => "99"
  "STATUS" => "PAID"
]
  • Status changes from CRM. Our plugin will send a GET request for a domain (taken from HOSTNAME) to the main page of the site with the following parameters: flamix_status=Y, status={Uppercase site status}, order_id={site order number} and hash=md5(api_token. '_'. strtoupper(status)), where api_token - Application secret token. The programmer must independently check them and change the status.
  • Status changes from the site. To change the status, the site must send a POST request to the URL https://leadwp-pay.app.flamix.solutions/api/v1/status/change with DOMAIN and api_token, passing HOSTNAME, ORDER_ID and STATUS (example above).