Commit afd25a23 authored by Kulya's avatar Kulya 😊

Begin adding Client to Billz 18

parent bbf89941
......@@ -810,8 +810,8 @@ class AloVoiceRest
$clientAddRes = BillzRest::createClient($arClientParams);
ALVC::eLog($clientAddRes,"------ Billz :: Client Add RES:");
if(!empty($clientAddRes["result"]["clientId"])){
$blzClientID = $clientAddRes["result"]["clientId"];
if(!empty($clientAddRes["answer"]["result"]["clientId"])){
$blzClientID = $clientAddRes["answer"]["result"]["clientId"];
$resContUpd = BxRest::call("crm.contact.update",[ "id" => $clientId, "fields"=> ["UF_CRM_1644411792448"=>$blzClientID] ]);
ALVC::eLog($resContUpd,"------ Billz :: Client(contact) Update RES:");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment