Skip to content

Commit

Permalink
+customerExternalIds method
Browse files Browse the repository at this point in the history
  • Loading branch information
pomadchin committed Mar 22, 2014
1 parent 4f678f3 commit 1e61f51
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/IntaroCrm/RestApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,22 @@ public function customerUpload($customers)
return $result;
}

/**
* Обновление externalId у клиентов с переданными id
*
* @param array $customers- массив, содержащий id и externalId заказа
* @return array
*/
public function customerFixExternalIds($customers)
{
$dataJson = json_encode($customers);
$this->parameters['customers'] = $dataJson;

$url = $this->apiUrl.'customers/fix-external-ids';
$result = $this->curlRequest($url, 'POST');
return $result;
}

/**
* Удаление клиента
*
Expand Down

0 comments on commit 1e61f51

Please sign in to comment.