checkout – Magento 1.9 soap API: totals and subtotals are always equal to 0 after adding products to the cart

I am faced with a problem when adding a product to a created cart, the product is added to the cart successfully, as well as to the customer, but when I retrieve the total information of the cart, 0 always appears, here are some steps that I have followed:
1. log in api
2. create an empty shopping cart
3. Establish a "client" user
4. add product to cart
5. add directions to the cart

Here is my code

    // login information here
$ shoppingCartIncrementId = $ proxy-> call ($ sessionId, & # 39; cart.create & # 39;);

echo & carton id & # 39 ;. $ shoppingCartIncrementId;


// cart_customer.set - set a "client" user

$ customerAsGuest = array (
"customer_id" => 327,
"mode" => "client"
);

$ resultCustomerSet = $ proxy-> call ($ sessionId, & # 39; cart_customer.set & # 39 ;, array ($ shoppingCartIncrementId, $ customerAsGuest));

eco & # 39;
resultCustomerSet: & # 39; $ resultCustomerSet; // *********************** cart_product.add ***************** *********** $ arrProducts = array ( training( "sku" => "003", "quantity" => 1, "options" => array ( "subscription_type" => 8, "Subscribe_start" => "11/30/2018", "qty" => 1 ) ) ); $ resultCartProductAdd = $ proxy-> call ($ sessionId, "cart_product.add", array ($ shoppingCartIncrementId, $ arrProducts)); echo & # 39; ProductAdd: & # 39; $ resultCartProductAdd; // ______________________________________ cart_customer.addresses _______________________________ $ arrAddresses = array ( training( "mode" => "sending", "firstname" => "testFirstname", "lastname" => "testLastname", "company" => "testCompany", "street" => "testStreet", "city" => "testCity", "region" => "testRegion", "postcode" => "testPostcode", "country_id" => "MA", "phone" => "0123456789", "fax" => "0123456789", "is_default_shipping" => 0, "is_default_billing" => 0 ) training( "mode" => "billing", "firstname" => "testFirstname", "lastname" => "testLastname", "company" => "testCompany", "street" => "testStreet", "city" => "testCity", "region" => "testRegion", "postcode" => "testPostcode", "country_id" => "MA", "phone" => "0123456789", "fax" => "0123456789", "is_default_shipping" => 0, "is_default_billing" => 0 ) ); $ resultCustomerAddresses = $ proxy-> call ($ sessionId, "cart_customer.addresses", array ($ shoppingCartIncrementId, $ arrAddresses)); eco & # 39;
result of the address: & # 39; $ resultCustomerAddresses; // *********************** infos cart ****************** ********** $ result = $ proxy-> call ($ sessionId, & carton & # 39 ;, $ shoppingCartIncrementId); var_dump ($ result);

I found this post but it solved my problem: the cart total is not updated after adding an item to the cart (using API) using Magento 1.9 CE

Here is the answer I get (information cart):

["store_id"]=> string (1) "0" ["created_at"]=> string (19) "2018-11-27 13:59:41" ["updated_at"]=> string (19) "2018-11-27 13:59:44" ["converted_at"]=> NULL ["is_active"]=> string (1) "0" ["is_virtual"]=> string (1) "0" ["is_multi_shipping"]=> string (1) "0" ["items_count"]=> string (1) "1" ["items_qty"]=> string (6) "1.0000" ["orig_order_id"]=> string (1) "0" ["store_to_base_rate"]=> string (6) "1.0000" ["store_to_quote_rate"]=> string (6) "1.0000" ["base_currency_code"]=> string (3) "MAD" ["store_currency_code"]=> string (3) "MAD" ["quote_currency_code"]=> string (3) "MAD" ["grand_total"]=> string (6) "0.0000" ["base_grand_total"]=> string (6) "0.0000" ["checkout_method"]=> string (8) "client" ["customer_id"]=> string (3) "327" ["customer_tax_class_id"]=> string (1) "3" ["customer_group_id"]=> string (1) "7" ["customer_email"]=> string (13) "projet@test.ma" ["customer_prefix"]=> NULL ["customer_firstname"]=> string (11) "project test" ["customer_middlename"]=> NULL ["customer_lastname"]=> string (11) "project test" ["customer_suffix"]=> NULL ["customer_dob"]=> NULL ["customer_note"]=> NULL ["customer_note_notify"]=> string (1) "1" ["customer_is_guest"]=> string (1) "0" ["remote_ip"]=> NULL ["applied_rule_ids"]=> NULL ["reserved_order_id"]=> NULL ["password_hash"]=> NULL ["coupon_code"]=> NULL ["global_currency_code"]=> string (3) "MAD" ["base_to_global_rate"]=> string (6) "1.0000" ["base_to_quote_rate"]=> string (6) "1.0000" ["customer_taxvat"]=> NULL ["customer_gender"]=> NULL ["subtotal"]=> string (6) "0.0000" ["base_subtotal"]=> string (6) "0.0000" ["subtotal_with_discount"]=> string (6) "0.0000" ["base_subtotal_with_discount"]=> string (6) "0.0000" ["is_changed"]=> string (1) "1" ["trigger_recollect"]=> string (1) "0

Here is the information about magento:
magento version: 1.9
Api soap: version 1