diff --git a/composer.json b/composer.json index 400742a..28c83a0 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "ursuleacv/oauth2-lightspeed", "description": "LightSpeed OAuth 2.0 Client Provider for The PHP League OAuth2-Client", "license": "MIT", - "version": "2.0.23", + "version": "2.0.24", "authors": [ { "name": "Valentin Ursuleac", diff --git a/src/Provider/MerchantOS.php b/src/Provider/MerchantOS.php index e5c102f..350a976 100644 --- a/src/Provider/MerchantOS.php +++ b/src/Provider/MerchantOS.php @@ -457,13 +457,11 @@ public function getCustomer($customerId, $params = []) if (empty($params)) { $params = [ 'load_relations' => '["Contact","Tags","CustomerType"]', - 'customerID' => $customerId, 'archived' => 0, - 'limit' => '1', ]; } - $response = $this->makeAPICall('Account.Customer', 'GET', null, $params, null); + $response = $this->makeAPICall('Account.Customer', 'GET', $customerId, $params, null); //validate the response if (isset($response['Customer']) && $this->itemsCount($response) == 1) {