# Magento2\QuoteGuestCartTotalManagementV1Api

All URIs are relative to https://magento2.talisman-innovations.com/rest/default.

Method | HTTP request | Description
------------- | ------------- | -------------
[**quoteGuestCartTotalManagementV1CollectTotalsPut()**](QuoteGuestCartTotalManagementV1Api.md#quoteGuestCartTotalManagementV1CollectTotalsPut) | **PUT** /V1/guest-carts/{cartId}/collect-totals | 


## `quoteGuestCartTotalManagementV1CollectTotalsPut()`

```php
quoteGuestCartTotalManagementV1CollectTotalsPut($cart_id, $quote_guest_cart_total_management_v1_collect_totals_put_body): \Magento2\Model\QuoteDataTotalsInterface
```



Set shipping/billing methods and additional data for cart and collect totals for guest.

### Example

```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new Magento2\Api\QuoteGuestCartTotalManagementV1Api(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$cart_id = 'cart_id_example'; // string | The cart ID.
$quote_guest_cart_total_management_v1_collect_totals_put_body = new \Magento2\Model\QuoteGuestCartTotalManagementV1CollectTotalsPutRequest(); // \Magento2\Model\QuoteGuestCartTotalManagementV1CollectTotalsPutRequest

try {
    $result = $apiInstance->quoteGuestCartTotalManagementV1CollectTotalsPut($cart_id, $quote_guest_cart_total_management_v1_collect_totals_put_body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QuoteGuestCartTotalManagementV1Api->quoteGuestCartTotalManagementV1CollectTotalsPut: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **cart_id** | **string**| The cart ID. |
 **quote_guest_cart_total_management_v1_collect_totals_put_body** | [**\Magento2\Model\QuoteGuestCartTotalManagementV1CollectTotalsPutRequest**](../Model/QuoteGuestCartTotalManagementV1CollectTotalsPutRequest.md)|  | [optional]

### Return type

[**\Magento2\Model\QuoteDataTotalsInterface**](../Model/QuoteDataTotalsInterface.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: `*/*`

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
