not saving the WC_Session_Handler session and removing the product from the cart session in WooCommerce’s custom rest api

not saving the WC_Session_Handler session and removing the product from the cart session in WooCommerce’s custom rest api