# retrieve an auto order
import ultracart
from ultracart.rest import ApiException
from ultracart import ApiClient
from pprint import pprint
config = ultracart.Configuration()
# this key is valid only in the UltraCart development system. You need to supply a valid simple key here.
config.api_key['x-ultracart-simple-key'] \
= '4256aaf6dfedfa01582fe9a961ab0100216d737b874a4801582fe9a961ab0100'
config.debug = True
config.verify_ssl = True # Development only. Set to True for production.
api_client = ApiClient(configuration=config, 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)