API

Bazaviy sozlamalarni olish

GET/api/crm/v2/basev2
operationId: base.default

Bazaviy ma’lumotlarni avtorizatsiya va CRMni ishga tushirish uchun qaytaradi.

Avtorizatsiya

api-token + language + role

Javoblar

OK

object
statusstringmajburiy

Qiymatlar:successerror

Misol: success

dataobject
countriesarray of object
idintegermajburiy

Misol: 15

flagstringmajburiy

Misol: 🇦🇲

zonestringmajburiy

Misol: am

namestringmajburiy

Misol: Armenia

work_timeobjectmajburiy
fromstring

Misol: 10:00

tostring

Misol: 18:30

language_idintegermajburiy

Misol: 16

latitudenumber

Misol: 40.172197

longitudenumber

Misol: 44.513278

hot_lineobjectmajburiy
freeboolean

Misol: false

phonestring

Misol: +374 (53) 14-13-12

currencyobjectmajburiy
codestringmajburiy

Misol: AZN

textobjectmajburiy
symbolstringmajburiy

Misol: ₼

shortstringmajburiy

Misol: m.

middlestringmajburiy

Misol: man.

formatsobjectmajburiy
datestringmajburiy

Misol: dd/MM/yyyy

datetimestring

Misol: HH:mm dd/MM/yyyy

date_mobilestring

Misol: dd/MM/yyyy

datetime_mobilestring

Misol: HH:mm dd/MM/yyyy

coststringmajburiy

Misol: p c

phone_format_idintegermajburiy

Misol: 2

company_idintegermajburiy

Misol: 3

cis_modebooleanmajburiy

Misol: true

is_defaultbooleanmajburiy

Misol: false

languagesarray of object
idintegermajburiy

Misol: 16

namesobjectmajburiy
localstringmajburiy

Misol: Հայերեն

englishstringmajburiy

Misol: Armenian

iso639-1stringmajburiy

Misol: hy

flagstring

Misol: 🇦🇲

publishedboolean

Misol: true

phone_formatsarray of object
idintegermajburiy

Misol: 1

countryobjectmajburiy
namestring

Misol: Russia

flagstring

Misol: 🇷🇺

codestring

Misol: +7

maskstringmajburiy

Misol: +7 ___-___-__-__

regexstringmajburiy

Mobil telefon raqamini tekshirish uchun muntazam ifoda

Misol: ^(\\+7|8)?[ -]?\\(?(9\\d{2})\\)?[ -]?(\\d{3})[ -]?(\\d{2})[ -]?(\\d{2})$

bonusobject
textstringmajburiy

Misol: B

roundstringmajburiy

Misol: 0

symbolstringmajburiy

Misol: ฿

bitrix_widgetstring

Bitrix vidjeti mijozlarni qo‘llab-quvvatlash xizmati bilan aloqa uchun