docs/OrderApi.md in ultracart_api-3.9.7 vs docs/OrderApi.md in ultracart_api-3.9.8

- old
+ new

@@ -5,10 +5,11 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**adjust_order_total**](OrderApi.md#adjust_order_total) | **POST** /order/orders/{order_id}/adjust_order_total/{desired_total} | Adjusts an order total [**cancel_order**](OrderApi.md#cancel_order) | **POST** /order/orders/{order_id}/cancel | Cancel an order [**delete_order**](OrderApi.md#delete_order) | **DELETE** /order/orders/{order_id} | Delete an order +[**duplicate_order**](OrderApi.md#duplicate_order) | **POST** /order/orders/{order_id}/duplicate | Duplicate an order [**format**](OrderApi.md#format) | **POST** /order/orders/{order_id}/format | Format order [**generate_order_token**](OrderApi.md#generate_order_token) | **GET** /order/orders/token/{order_id} | Generate an order token for a given order id [**generate_packing_slip_all_dc**](OrderApi.md#generate_packing_slip_all_dc) | **GET** /order/orders/{order_id}/packing_slip | Generate a packing slip for this order across all distribution centers. [**generate_packing_slip_specific_dc**](OrderApi.md#generate_packing_slip_specific_dc) | **GET** /order/orders/{order_id}/packing_slip/{distribution_center_code} | Generate a packing slip for this order for the given distribution center. [**get_accounts_receivable_retry_config**](OrderApi.md#get_accounts_receivable_retry_config) | **GET** /order/accountsReceivableRetryConfig | Retrieve A/R Retry Configuration @@ -174,9 +175,63 @@ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey) ### HTTP request headers - **Content-Type**: application/json + - **Accept**: application/json + + + +# **duplicate_order** +> OrderResponse duplicate_order(order_id, opts) + +Duplicate an order + +Perform a duplicate of the specified order_id and return a new order located in Accounts Receivable. + +### Example +```ruby +# load the gem +require 'ultracart_api' + +# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key +simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00' +api_instance = UltracartClient::OrderApi.new_using_api_key(simple_key, false, false) + + +order_id = 'order_id_example' # String | The order id to duplicate. + +opts = { + _expand: '_expand_example' # String | The object expansion to perform on the result. See documentation for examples +} + +begin + #Duplicate an order + result = api_instance.duplicate_order(order_id, opts) + p result +rescue UltracartClient::ApiError => e + puts "Exception when calling OrderApi->duplicate_order: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **order_id** | **String**| The order id to duplicate. | + **_expand** | **String**| The object expansion to perform on the result. See documentation for examples | [optional] + +### Return type + +[**OrderResponse**](OrderResponse.md) + +### Authorization + +[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey) + +### HTTP request headers + + - **Content-Type**: application/json; charset=UTF-8 - **Accept**: application/json # **format**