Код: Выделить всё
function setOrderNotes($orderId, $orderNote) {
// set parameter array
$params = array('referenceType'=>'order','referenceValue'=>$orderId,'text'=>$orderNote,'isVisibleForContact'=>true);
// make curl request to get order by id
$result = $this->_makeRequest('/rest/comments','POST', $params);
// return order array by order id
return $result;
}
Подробнее здесь: https://stackoverflow.com/questions/495 ... t-rest-api
Мобильная версия