diff --git a/module/RubedoAPI/src/RubedoAPI/Rest/V1/Ecommerce/OrdersResource.php b/module/RubedoAPI/src/RubedoAPI/Rest/V1/Ecommerce/OrdersResource.php index 17b45dc3c..22d19ddb0 100644 --- a/module/RubedoAPI/src/RubedoAPI/Rest/V1/Ecommerce/OrdersResource.php +++ b/module/RubedoAPI/src/RubedoAPI/Rest/V1/Ecommerce/OrdersResource.php @@ -234,7 +234,7 @@ protected function addCartInfos($cart, $userTypeId, $country, $region, $postalCo } } return array( - 'cart' => $cart, + 'cart' => array_values($cart), 'totalPrice' => $totalPrice, 'totalTaxedPrice' => $totalTaxedPrice, 'totalItems' => $totalItems