public function ordersGet($id, $by = 'externalId', $site = null)
    {
        $this->checkIdParameter($by);

        /* @noinspection PhpUndefinedMethodInspection */
        return $this->client->makeRequest(
            "/orders/$id",
            "GET",
            $this->fillSite($site, ['by' => $by])
        );
    }
public function ordersGet($id, $by = 'externalId', $site = null)
    {
        $this->checkIdParameter($by);

        /* @noinspection PhpUndefinedMethodInspection */
        return $this->client->makeRequest(
            "/orders/$id",
            "GET",
            $this->fillSite($site, ['by' => $by])
        );
    }
public function ordersGet ( $ id , $ by = 'externalId' , $ site = null ) { $ this -> checkIdParameter ( $ by ) ; /* @noinspection PhpUndefinedMethodInspection */ return $ this -> client -> makeRequest ( "/orders/$id" , "GET" , $ this -> fillSite ( $ site , [ 'by' => $ by ] ) ) ; }
Get order by id or externalId

@param string $id   order identificator
@param string $by   (default: 'externalId')
@param string $site (default: null)

@throws \InvalidArgumentException
@throws \RetailCrm\Exception\CurlException
@throws \RetailCrm\Exception\InvalidJsonException

@return \RetailCrm\Response\ApiResponse
Get order by id or externalId