API

Pobierz ustawienia integracji z systemem automatyzacji

GET/api/crm/v2/integration_automationsv2
operationId: integrationAutomations.default

Autoryzacja

api-token + language + role

Parametry zapytania

branch_idinteger

Przykład: 8922

Odpowiedzi

OK

object
statusstringwymagane

Wartości:successerror

Przykład: success

dataobject
filtersobjectwymagane
branch_idobject (FilterSelectInteger)
valueinteger

Przykład: 8920

typestringwymagane

Przykład: select

optionarray of object
valueintegerwymagane

Przykład: 8920

namestringwymagane

Przykład: Green Basket | Kaliningrad

modestring (FilterMode)

Jak interfejs obsługuje filtr; zwykły filtr nie ma mode. force_shown — zawsze widoczny, nie można ukryć. value_required — punkt wejścia do sekcji: zawsze widoczny, nie może mieć pustej wartości (dopóki wartość nie zostanie wybrana, lista jest pusta; nie ma opcji „wszystko”), ogólne resetowanie go nie czyści.

Wartości:force_shownvalue_required

Przykład: value_required

settingsobject
chain_idintegerwymagane

Przykład: 1

automation_idintegerwymagane

Przykład: 1

automation_enabledbooleanwymagane

Przykład: true

automation_error_notifications_enabledbooleanwymagane

Przykład: true

price_smsstringwymagane

Przykład: 3.5

tokenstringwymagane

Przykład: f20138c54eaaad6c00ac77d27b2f4cb4

project_name_shortstringwymagane

Przykład: FS

phone_clean_enabledbooleanwymagane

Przykład: true

phone_plus_delete_enabledbooleanwymagane

Przykład: true

phone_space_delete_enabledbooleanwymagane

Przykład: true

qr_bar_code_enabledbooleanwymagane

Przykład: true

callback_api_enabledbooleanwymagane

Przykład: true

import_once_catalog_enabledbooleanwymagane

Przykład: true

import_once_description_enabledbooleanwymagane

Przykład: true

import_once_image_enabledbooleanwymagane

Przykład: true

import_once_labels_enabledbooleanwymagane

Przykład: true

districts_settingsarray of object
idintegerwymagane

Dla ustawień domyślnych id jest równe 0

Przykład: 0

terminalstring

Klucz pola formularza district_data_${district_id}_terminal

Przykład: terminal1

deliverystring

Klucz pola formularza district_data_${district_id}_delivery

Przykład: delivery1

pickups_settingsarray of object
idintegerwymagane

Domyślnie id jest równe 0

Przykład: 0

terminalstring

Klucz pola formularza pickup_data_${pickup_id}_terminal

Przykład: terminal1

listarray of object
idintegerwymagane

Przykład: 1

namestringwymagane

Przykład: FrontPad

fieldsarray of object
encryptedbooleanwymagane

Zaszyfrowane pole; do wprowadzania użyj pola typu „hasło”

Przykład: true

namestringwymagane

Przykład: api_key

valueoneOf
Jeden z wariantów
string

URL, имя файла или токен — для type=radio/select/file

Przykład: secret

typestring

Wartości:switchradiocheckboxselectfile

Przykład: switch

valuesarray of string
districtsbooleanwymagane

Przykład: true

pickupsbooleanwymagane

Przykład: true

sitestring

Przykład: https://frontpad.ru/

wikistring

Przykład: https://wiki.foodsoul.pro/i/40

import_modestringwymagane

Wartości:nomanualautomatic

Przykład: no

webhook_link_enabledbooleanwymagane

Przykład: true

webhook_setup_enabledbooleanwymagane

Przykład: true

system_namestring

Przykład: front_pad

webhookstring

Przykład: https://ru.foodsoul.test/webhook/automation/front_pad/?token=f20138c54eaaad6c00ac77d27b2f4cb4