# Magento2\CheckoutTotalsInformationManagementV1Api

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**checkoutTotalsInformationManagementV1CalculatePost()**](CheckoutTotalsInformationManagementV1Api.md#checkoutTotalsInformationManagementV1CalculatePost) | **POST** /V1/carts/{cartId}/totals-information | 
[**checkoutTotalsInformationManagementV1CalculatePost_0()**](CheckoutTotalsInformationManagementV1Api.md#checkoutTotalsInformationManagementV1CalculatePost_0) | **POST** /V1/carts/mine/totals-information | 


## `checkoutTotalsInformationManagementV1CalculatePost()`

```php
checkoutTotalsInformationManagementV1CalculatePost($cart_id, $checkout_totals_information_management_v1_calculate_post_body): \Magento2\Model\QuoteDataTotalsInterface
```



Calculate quote totals based on address and shipping method.

### Example

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



$apiInstance = new Magento2\Api\CheckoutTotalsInformationManagementV1Api(
    // 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 = 56; // int
$checkout_totals_information_management_v1_calculate_post_body = new \Magento2\Model\CheckoutTotalsInformationManagementV1CalculatePostRequest(); // \Magento2\Model\CheckoutTotalsInformationManagementV1CalculatePostRequest

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **cart_id** | **int**|  |
 **checkout_totals_information_management_v1_calculate_post_body** | [**\Magento2\Model\CheckoutTotalsInformationManagementV1CalculatePostRequest**](../Model/CheckoutTotalsInformationManagementV1CalculatePostRequest.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)

## `checkoutTotalsInformationManagementV1CalculatePost_0()`

```php
checkoutTotalsInformationManagementV1CalculatePost_0($checkout_totals_information_management_v1_calculate_post_body): \Magento2\Model\QuoteDataTotalsInterface
```



Calculate quote totals based on address and shipping method.

### Example

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



$apiInstance = new Magento2\Api\CheckoutTotalsInformationManagementV1Api(
    // 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()
);
$checkout_totals_information_management_v1_calculate_post_body = new \Magento2\Model\CheckoutTotalsInformationManagementV1CalculatePostRequest(); // \Magento2\Model\CheckoutTotalsInformationManagementV1CalculatePostRequest

try {
    $result = $apiInstance->checkoutTotalsInformationManagementV1CalculatePost_0($checkout_totals_information_management_v1_calculate_post_body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckoutTotalsInformationManagementV1Api->checkoutTotalsInformationManagementV1CalculatePost_0: ', $e->getMessage(), PHP_EOL;
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **checkout_totals_information_management_v1_calculate_post_body** | [**\Magento2\Model\CheckoutTotalsInformationManagementV1CalculatePostRequest**](../Model/CheckoutTotalsInformationManagementV1CalculatePostRequest.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)
