diff --git a/src/Products/GetProduct.php b/src/Products/GetProduct.php index 0386ca2..a5899f0 100644 --- a/src/Products/GetProduct.php +++ b/src/Products/GetProduct.php @@ -49,6 +49,11 @@ public function sendRequest( $apiHeaders['query']['skus'] = $skuArr; } + if (isset($apiHeaders['query'])) { + $apiHeaders['query'] = http_build_query($apiHeaders['query']); + $apiHeaders['query'] = preg_replace('/%5B(?:[0-9]|[1-9][0-9]+)%5D=/', '=', $apiHeaders['query']); + } + // Send the HTTP request to the API endpoint and get the response stream $response = $this->httpClient->request('GET', $url, $apiHeaders);