Skip to content

Latest commit

 

History

History
156 lines (104 loc) · 5.51 KB

File metadata and controls

156 lines (104 loc) · 5.51 KB

swagger_client.CheckoutGuestPaymentInformationManagementV1Api

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

Method HTTP request Description
checkout_guest_payment_information_management_v1_get_payment_information_get GET /V1/guest-carts/{cartId}/payment-information
checkout_guest_payment_information_management_v1_save_payment_information_and_place_order_post POST /V1/guest-carts/{cartId}/payment-information
checkout_guest_payment_information_management_v1_save_payment_information_post POST /V1/guest-carts/{cartId}/set-payment-information

checkout_guest_payment_information_management_v1_get_payment_information_get

CheckoutDataPaymentDetailsInterface checkout_guest_payment_information_management_v1_get_payment_information_get(cart_id)

Get payment information

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.CheckoutGuestPaymentInformationManagementV1Api()
cart_id = 'cart_id_example' # str | 

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

Parameters

Name Type Description Notes
cart_id str

Return type

CheckoutDataPaymentDetailsInterface

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_guest_payment_information_management_v1_save_payment_information_and_place_order_post

int checkout_guest_payment_information_management_v1_save_payment_information_and_place_order_post(cart_id, body=body)

Set payment information and place order for a specified cart.

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.CheckoutGuestPaymentInformationManagementV1Api()
cart_id = 'cart_id_example' # str | 
body = swagger_client.Body115() # Body115 |  (optional)

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

Parameters

Name Type Description Notes
cart_id str
body Body115 [optional]

Return type

int

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_guest_payment_information_management_v1_save_payment_information_post

int checkout_guest_payment_information_management_v1_save_payment_information_post(cart_id, body=body)

Set payment information for a specified cart.

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.CheckoutGuestPaymentInformationManagementV1Api()
cart_id = 'cart_id_example' # str | 
body = swagger_client.Body116() # Body116 |  (optional)

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

Parameters

Name Type Description Notes
cart_id str
body Body116 [optional]

Return type

int

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]