From 1e61f51ae62ea8c250c06e396a38dbc589a0740f Mon Sep 17 00:00:00 2001 From: Grisha Pomadchin Date: Sat, 22 Mar 2014 15:17:55 +0400 Subject: [PATCH] +customerExternalIds method --- lib/IntaroCrm/RestApi.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/IntaroCrm/RestApi.php b/lib/IntaroCrm/RestApi.php index 9576d9e..7bb0542 100644 --- a/lib/IntaroCrm/RestApi.php +++ b/lib/IntaroCrm/RestApi.php @@ -211,6 +211,22 @@ class RestApi 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; + } + /** * Удаление клиента *