diff --git a/lib/IntaroCrm/RestApi.php b/lib/IntaroCrm/RestApi.php index 49f3046..0ad8d22 100644 --- a/lib/IntaroCrm/RestApi.php +++ b/lib/IntaroCrm/RestApi.php @@ -393,7 +393,7 @@ class RestApi $dataJson = json_encode($orderMethod); $this->parameters['orderMethod'] = $dataJson; - $url = $this->apiUrl.'reference/order-methods/'.$orderType['code'].'/edit'; + $url = $this->apiUrl.'reference/order-methods/'.$orderMethod['code'].'/edit'; $result = $this->curlRequest($url, 'POST'); return $result; }