Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

# retrieve an auto order
import ultracart
from ultracart.rest import ApiException
from ultracart import ApiClient
from pprint import pprint

# this key is valid only in the UltraCart development system.  You need to supply a valid simple key here.
ultracart.configuration.api_key['x-ultracart-simple-key'] \
    = '4256aaf6dfedfa01582fe9a961ab0100216d737b874a4801582fe9a961ab0100'
ultracart.configuration.debug = True
ultracart.configuration.verify_ssl = True  # Development only.  Set to True for production.

api_client = ApiClient(header_name='X-UltraCart-Api-Version', header_value='2017-03-01')
api_instance = ultracart.AutoorderApi(api_client)

auto_order_oid = 3268342  # int | The auto order oid to retrieve.
expand = 'items'  # str | The object expansion to perform on the result.  See documentation for examples (optional)

try:

    auto_order_response = api_instance.get_auto_order(auto_order_oid, expand=expand)
    auto_order = auto_order_response.auto_order

    pprint(auto_order)
except ApiException as e:
    print ("Exception when calling AutoorderApi->get_auto_order: %s\n" % e)


  • No labels