API

Adăugați o înregistrare în lista neagră

POST/api/crm/v2/black_list.addv2
operationId: blackList.add

Adaugă o înregistrare în lista neagră. type_lock determină ce identificator este așteptat în corpul cererii: phone_number, client_branch_profile_id sau client_account_id. Un duplicat în cadrul rețelei este respins.

Autorizare

api-token + language + role

Corpul cererii application/json

object
type_lockstringobligatoriu

Valori:phone_numberclient_branch_profile_idclient_account_id

Exemplu: phone_number

Una dintre opțiuni
object (blackListOneOf)

Corpul cererii pentru rețea

Una dintre opțiuni
object

Blocare după phone_number

phone_format_idinteger (PhoneFormatId) obligatoriu

Codul țării: 1-🇷🇺(+7|8), 2-🇦🇿(+994|0), 3-🇧🇾(+375|80), 4-🇰🇿(+7|8), 6-🇷🇸(+381|0), 7-🇹🇷(+90|0), 8-🇺🇦(+380|0), 9-🇵🇹(+351|0), 10-🇰🇬(+996|0), 11-🇺🇸(+1), 12-🇫🇷(+33|0), 13-🇲🇩(+373|0), 15-🇪🇪(+372), 18-🇬🇪(+995), 19-🇺🇿(+998), 22-🇵🇱(+48|0), 23-🇹🇯(+992|8), 25-🇷🇴(+40|0), 44-🇨🇭(+41|0)

Exemplu: 1

phone_numberstringobligatoriu

Exemplu: 705-712-51-20

Răspunsuri

OK

object
statusstringobligatoriu

Valori:successerror

Exemplu: success

dataobject
descriptionstring

Exemplu: Successfully added

rowobject
chain_idinteger

Exemplu: 7135

datestring (DataTimeFormatSQL)

Exemplu: 2024-05-02 08:31:16

phone_format_idinteger

Exemplu: 4

phone_numberstring

Exemplu: 7057125119

client_account_idinteger

Exemplu: 0

client_branch_profile_idinteger

Exemplu: 0

blockedboolean

Exemplu: true

idstring

Exemplu: 82348