diff --git a/includes/class-wc-gzd-checkout.php b/includes/class-wc-gzd-checkout.php index 626c29ce6..4a8d61b57 100644 --- a/includes/class-wc-gzd-checkout.php +++ b/includes/class-wc-gzd-checkout.php @@ -808,7 +808,7 @@ public function set_free_shipping_filter( $cart ) { } public function free_shipping_auto_select( $rates ) { - $do_check = is_checkout() || is_cart() || self::$force_free_shipping_filter; + $do_check = is_checkout() || is_cart() || WC_germanized()->is_rest_api_request() || self::$force_free_shipping_filter; if ( ! $do_check ) { return $rates; diff --git a/src/Blocks/Checkout.php b/src/Blocks/Checkout.php index 76b161bea..45e1e28aa 100644 --- a/src/Blocks/Checkout.php +++ b/src/Blocks/Checkout.php @@ -1,6 +1,7 @@