Skip to content

Latest commit

 

History

History
106 lines (70 loc) · 3.48 KB

CheckoutTotalsInformationManagementV1Api.md

File metadata and controls

106 lines (70 loc) · 3.48 KB

swagger_client.CheckoutTotalsInformationManagementV1Api

All URIs are relative to http://localhost/rest/default

Method HTTP request Description
checkout_totals_information_management_v1_calculate_post POST /V1/carts/{cartId}/totals-information
checkout_totals_information_management_v1_calculate_post_0 POST /V1/carts/mine/totals-information

checkout_totals_information_management_v1_calculate_post

QuoteDataTotalsInterface checkout_totals_information_management_v1_calculate_post(cart_id, body=body)

Calculate quote totals based on address and shipping method.

Example

from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CheckoutTotalsInformationManagementV1Api()
cart_id = 56 # int | 
body = swagger_client.Body112() # Body112 |  (optional)

try: 
    api_response = api_instance.checkout_totals_information_management_v1_calculate_post(cart_id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckoutTotalsInformationManagementV1Api->checkout_totals_information_management_v1_calculate_post: %s\n" % e)

Parameters

Name Type Description Notes
cart_id int
body Body112 [optional]

Return type

QuoteDataTotalsInterface

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

checkout_totals_information_management_v1_calculate_post_0

QuoteDataTotalsInterface checkout_totals_information_management_v1_calculate_post_0(body=body)

Calculate quote totals based on address and shipping method.

Example

from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CheckoutTotalsInformationManagementV1Api()
body = swagger_client.Body113() # Body113 |  (optional)

try: 
    api_response = api_instance.checkout_totals_information_management_v1_calculate_post_0(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckoutTotalsInformationManagementV1Api->checkout_totals_information_management_v1_calculate_post_0: %s\n" % e)

Parameters

Name Type Description Notes
body Body113 [optional]

Return type

QuoteDataTotalsInterface

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]